Ejemplo n.º 1
0
 public void ChangeState(State newState)
 {
     foreach(Window w in Windows.GetRange(0,Windows.Count))
     {
         if(w.ParentState != newState)
             Windows.Remove(w);
     }
     ActiveWindow = null;
     CurrentState = newState;
 }
Ejemplo n.º 2
0
 public Window(WindowManager _WM,State _parentState, int _X,int _Y, int _SizeX, int _SizeY,string _Title,BorderType Btype)
     : base(_X,_Y,_SizeX,_SizeY,_WM)
 {
     bordType = Btype;
     ParentState = _parentState;
     Widgets = new List<Widget>();
     GenerateBorder();
     Title = new Text(_Title, WM.font);
     SetSize(_SizeX, _SizeY);
     SetPosition(_X, _Y);
 }