コード例 #1
0
ファイル: ManguiMain.cs プロジェクト: widewhale/MaNGOS-GUI
 private void menuDeleteAccount_Click(object sender, EventArgs e)
 {
     try
     {
         if (!mangosProcess.HasExited)
         {
             Form showDeleteAccount = new deleteAccount();
             showDeleteAccount.Show();
         }
         else
         {
             MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
         }
     }
     catch
     {
         MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
     }
 }
コード例 #2
0
ファイル: ManguiMain.cs プロジェクト: widewhale/MaNGOS-GUI
 private void LoadDeleteWithData()
 {
     int row = dataOnlineInfo.CurrentRow.Index;
     try
     {
         if (!mangosProcess.HasExited)
         {
             deleteAccount frmShowDeleteAccount = new deleteAccount();
             frmShowDeleteAccount.Show();
             frmShowDeleteAccount.Controls["textAccountName"].Text =
                 dataOnlineInfo.Rows[row].Cells["Account"].Value.ToString();
         }
         else
         {
             MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
         }
     }
     catch
     {
         MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
     }
 }