Ejemplo n.º 1
0
 public void HideAllWindows()
 {
     foreach (WeakReference wr in this.windows)
     {
         DXWindowBase window = (DXWindowBase)wr.Target;
         if (window != null)
         {
             window.Hide();
         }
     }
 }
 public void SetWindowActive(DXWindowBase window) {
     foreach(WeakReference reference in this.windows) {
         if(reference.IsAlive) {
             DXWindowBase currentWindow = reference.Target as DXWindowBase;
             if(currentWindow == window) {
                 currentWindow.SetActive(true);
                 this.ActiveWindow = reference;
             } else {
                 currentWindow.SetActive(false);
             }
         }
     }
 }
Ejemplo n.º 3
0
 public void SetWindowActive(DXWindowBase window)
 {
     foreach (WeakReference reference in this.windows)
     {
         if (reference.IsAlive)
         {
             DXWindowBase currentWindow = reference.Target as DXWindowBase;
             if (currentWindow == window)
             {
                 currentWindow.SetActive(true);
                 this.ActiveWindow = reference;
             }
             else
             {
                 currentWindow.SetActive(false);
             }
         }
     }
 }
Ejemplo n.º 4
0
 public void Register(DXWindowBase window)
 {
     this.windows.Add(new WeakReference(window));
 }
 public void Register(DXWindowBase window) {
     this.windows.Add(new WeakReference(window));
 }