예제 #1
0
 private void LoadSendMessageWithData()
 {
     int row = dataOnlineInfo.CurrentRow.Index;
     try
     {
         if (!mangosProcess.HasExited)
         {
             sendMessage frmShowSendMessage = new sendMessage();
             frmShowSendMessage.Show();
             frmShowSendMessage.Controls["textCharacterName"].Text =
                 dataOnlineInfo.Rows[row].Cells["Character"].Value.ToString();
         }
         else
         {
             MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
         }
     }
     catch
     {
         MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
     }
 }
예제 #2
0
 private void menuSendMessage_Click(object sender, EventArgs e)
 {
     try
     {
         if (!mangosProcess.HasExited)
         {
             Form showSendMessage = new sendMessage();
             showSendMessage.Show();
         }
         else
         {
             MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
         }
     }
     catch
     {
         MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
     }
 }