private void Window_Closed(object sender, EventArgs e) { if (result == CloseDialogResult.None) { result = CloseDialogResult.Back; } }
private void back_Click(object sender, RoutedEventArgs e) { result = CloseDialogResult.Back; Close(); }
private void minimize_Click(object sender, RoutedEventArgs e) { result = CloseDialogResult.Minimize; Close(); }
private void exit_Click(object sender, RoutedEventArgs e) { result = CloseDialogResult.Exit; Close(); }
public CloseDialog() { InitializeComponent(); result = CloseDialogResult.None; }