コード例 #1
0
 public void HideAllWindows()
 {
     foreach (WeakReference wr in this.windows)
     {
         DXWindowBase window = (DXWindowBase)wr.Target;
         if (window != null)
         {
             window.Hide();
         }
     }
 }
コード例 #2
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);
             }
         }
     }
 }
コード例 #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);
             }
         }
     }
 }
コード例 #4
0
 public void Register(DXWindowBase window)
 {
     this.windows.Add(new WeakReference(window));
 }
コード例 #5
0
 public void Register(DXWindowBase window) {
     this.windows.Add(new WeakReference(window));
 }