25 lines
		
	
	
		
			575 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			575 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using NEG.UI.Window;
 | |
| using System.Collections.Generic;
 | |
| 
 | |
| namespace NEG.UI.WindowSlot
 | |
| {
 | |
|     public interface ISlotsHolder
 | |
|     {
 | |
|         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();
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| } |