コード例 #1
0
 private void Exit_Click(object sender, RoutedEventArgs e)
 {
     if (MessageBox.Show("真的要退出么?", "PBO", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
     {
         PBOClient.Exit();
     }
 }
コード例 #2
0
ファイル: LobbyPanel.xaml.cs プロジェクト: gyyfifafans/PBO
 public bool Window_Closing()
 {
     if (PBOClient.Current != null)
     {
         if (ShowMessageBox.ExitLobby() == MessageBoxResult.Yes)
         {
             PBOClient.Exit();
         }
         else
         {
             return(true);
         }
     }
     return(false);
 }