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); } } } }
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); } } } }
public void Register(DXWindowBase window) { this.windows.Add(new WeakReference(window)); }