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); } }
/// <summary> /// Kills the window. /// </summary> /// <returns>The window.</returns> /// <param name="border">Border.</param> public void KillWindow(IWindowBorder border) { border.Close(); }