Example #1
0
 private void Window_Closed(object sender, EventArgs e)
 {
     if (result == CloseDialogResult.None)
     {
         result = CloseDialogResult.Back;
     }
 }
Example #2
0
 private void back_Click(object sender, RoutedEventArgs e)
 {
     result = CloseDialogResult.Back;
     Close();
 }
Example #3
0
 private void minimize_Click(object sender, RoutedEventArgs e)
 {
     result = CloseDialogResult.Minimize;
     Close();
 }
Example #4
0
 private void exit_Click(object sender, RoutedEventArgs e)
 {
     result = CloseDialogResult.Exit;
     Close();
 }
Example #5
0
 public CloseDialog()
 {
     InitializeComponent();
     result = CloseDialogResult.None;
 }