Ejemplo n.º 1
0
        public override void Close(IShiftOSWindow win)
        {
            IWindowBorder brdrToClose = null;

            foreach (WpfWindowBorder brdr in AppearanceManager.OpenForms)
            {
                if (brdr.ParentWindow == win)
                {
                    brdrToClose = brdr;
                }
            }

            if (brdrToClose != null)
            {
                brdrToClose.Close();
                AppearanceManager.OpenForms.Remove(brdrToClose);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Kills the window.
 /// </summary>
 /// <returns>The window.</returns>
 /// <param name="border">Border.</param>
 public void KillWindow(IWindowBorder border)
 {
     border.Close();
 }