Beispiel #1
0
        private void LV_Ships_DoubleClick(object sender, EventArgs e)
        {
            ListViewItem lvi = LV_Ships.SelectedItems[0];

            lvi.Checked = !lvi.Checked;

            VesselEdit VE = new VesselEdit();

            VE.Vessel = (OrbVessel)lvi.Tag;
            VE.TLE    = lvi.SubItems[3].Text.Split('\n');

            if (VE.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            lvi.SubItems[1].Text = VE.OrbiterName;
            lvi.SubItems[2].Text = VE.VesselClass;
            lvi.SubItems[3].Text = string.Join("\n", VE.TLE);
            lvi.Text             = VE.TLE[0];
            lvi.Tag = VE.Vessel;
        }
Beispiel #2
0
        private void LV_Ships_DoubleClick(object sender, EventArgs e)
        {
            ListViewItem lvi = LV_Ships.SelectedItems[0];
            lvi.Checked = !lvi.Checked;

            VesselEdit VE = new VesselEdit();
            VE.Vessel = (OrbVessel)lvi.Tag;
            VE.TLE = lvi.SubItems[3].Text.Split('\n');

            if (VE.ShowDialog() != DialogResult.OK) return;

            lvi.SubItems[1].Text = VE.OrbiterName;
            lvi.SubItems[2].Text = VE.VesselClass;
            lvi.SubItems[3].Text = string.Join("\n", VE.TLE);
            lvi.Text = VE.TLE[0];
            lvi.Tag = VE.Vessel;
        }