Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 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);
     }
 }