Пример #1
0
 private void LoadTeleportWithData()
 {
     int row = dataOnlineInfo.CurrentRow.Index;
     try
     {
         if (!mangosProcess.HasExited)
         {
             teleChar frmShowTeleport = new teleChar();
             frmShowTeleport.Show();
             frmShowTeleport.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 menuTeleport_Click(object sender, EventArgs e)
 {
     try
     {
         if (!mangosProcess.HasExited)
         {
             Form showTeleChar = new teleChar();
             showTeleChar.Show();
         }
         else
         {
             MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
         }
     }
     catch
     {
         MessageBox.Show(hcStringResources.ManguiMain_MangosNotRunning);
     }
 }