Пример #1
0
 private void JoinSession_OnClick(object sender, RoutedEventArgs e)
 {
     try
     {
         SessionKeyDialogResult = SessionKeyDialogResult.JoinSession;
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
 private void Cancel_OnClick(object sender, RoutedEventArgs e)
 {
     try
     {
         SessionKeyDialogResult = SessionKeyDialogResult.Cancel;
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }