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();
            }
        }
示例#2
0
 public virtual void TurnOn()
 {
     window.TurnOn();
 }