27 lines
620 B
C#
27 lines
620 B
C#
using System.Collections.Generic;
|
|
using NEG.UI.Popup;
|
|
using NEG.UI.Window;
|
|
using NEG.UI.WindowSlot;
|
|
|
|
namespace NEG.UI.Area
|
|
{
|
|
public interface IArea : IUiElement
|
|
{
|
|
IEnumerable<IWindowSlot> AvailableSlots { get; }
|
|
|
|
/// <summary>
|
|
/// Open window
|
|
/// </summary>
|
|
/// <param name="window"></param>
|
|
/// <param name="data"></param>
|
|
void OpenWindow(IWindow window, object data = null);
|
|
|
|
void CloseAllWindows()
|
|
{
|
|
foreach (var slot in AvailableSlots)
|
|
{
|
|
slot.CloseAllWindows();
|
|
}
|
|
}
|
|
}
|
|
} |