private void showSystemToolStripMenuItem_Click(object sender, EventArgs e) { if (cbWorlds.SelectedText.Length > 0) { Traveller.World dw = new Traveller.World(cbWorlds.SelectedText, ship.Version); DisplayWorld dispworld = new DisplayWorld(dw); dispworld.frm1 = this; dispworld.ShowDialog(); } }
// show the system clicked private void lvJ6_MouseDoubleClick(object sender, MouseEventArgs e) { string sec = lvJ6.SelectedItems[0].Text; Traveller.World dw = new Traveller.World(sec, ship.Version); DisplayWorld dispworld = new DisplayWorld(dw); dispworld.frm1 = this; dispworld.ShowDialog(); }