public void CloseTopMost() { for (var i = WindowOrder.Count - 1; i >= 0; i--) // NOTE: Property { var window = windowOrder[i]; windowOrder.RemoveAt(i); if (window != null && window.On == true) { window.TurnOff(); return; } } if (emptyWindow != null) { emptyWindow.TurnOn(); } }
public virtual void TurnOn() { window.TurnOn(); }