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); } }
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); } }