예제 #1
0
 private void miClose_Click(object sender, RoutedEventArgs e)
 {
     if (Window != null)
     {
         Window.Close();
     }
 }
예제 #2
0
 public void CloseWindow(ApplicationWindow window)
 {
     if (window.Close() != IntPtr.Zero)
     {
         CairoLogger.Instance.Debug($"Removing window {window.Title} from collection due to no response");
         window.Dispose();
         TasksService.Instance.Windows.Remove(window);
     }
 }