Пример #1
0
        private void gpsDataBTN_Click(object sender, EventArgs e)
        {
            //int id = int.Parse(boatsLV.Items[boatsLV.SelectedIndices[0]].SubItems[5].Text);
            //EditSensorFiles esf = new EditSensorFiles(_boats[boatsLV.SelectedIndices[0]]);
            //esf.ShowDialog();
            ImportFiles imfi = new ImportFiles(_boats[boatsLV.SelectedIndices[0]]);

            imfi.ShowDialog();
            _boats[boatsLV.SelectedIndices[0]].RefreshGpsBounds();
            LoadBoats();
        }
Пример #2
0
        private void newBoatBTN_Click_1(object sender, EventArgs e)
        {
            Boat     b  = new Boat("New Boat", "Sail Number", AmphibianSoftware.VisualSail.Library.ColorHelper.AutoColorPick(_race.Boats.Count).ToArgb(), BoatType.FindAll()[0]);
            EditBoat eb = new EditBoat(b);

            eb.ShowDialog();
            if (eb.DialogResult == DialogResult.OK)
            {
                b = eb.Boat;
                b.Save();

                //EditSensorFiles esf = new EditSensorFiles(b);
                //esf.ShowDialog();
                ImportFiles imfi = new ImportFiles(b);
                imfi.ShowDialog();
                b.RefreshGpsBounds();

                _boats.Add(b);
                _race.Boats.Add(b);

                LoadBoats();
            }
        }
Пример #3
0
        private void newBoatBTN_Click_1(object sender, EventArgs e)
        {
            Boat b = new Boat("New Boat", "Sail Number", AmphibianSoftware.VisualSail.Library.ColorHelper.AutoColorPick(_race.Boats.Count).ToArgb(), BoatType.FindAll()[0]);
            EditBoat eb = new EditBoat(b);
            eb.ShowDialog();
            if (eb.DialogResult==DialogResult.OK)
            {
                b = eb.Boat;
                b.Save();
                
                //EditSensorFiles esf = new EditSensorFiles(b);
                //esf.ShowDialog();
                ImportFiles imfi = new ImportFiles(b);
                imfi.ShowDialog();
                b.RefreshGpsBounds();

                _boats.Add(b);
                _race.Boats.Add(b);

                LoadBoats();
            }
        }
Пример #4
0
 private void gpsDataBTN_Click(object sender, EventArgs e)
 {
     //int id = int.Parse(boatsLV.Items[boatsLV.SelectedIndices[0]].SubItems[5].Text);
     //EditSensorFiles esf = new EditSensorFiles(_boats[boatsLV.SelectedIndices[0]]);
     //esf.ShowDialog();
     ImportFiles imfi = new ImportFiles(_boats[boatsLV.SelectedIndices[0]]);
     imfi.ShowDialog();
     _boats[boatsLV.SelectedIndices[0]].RefreshGpsBounds();
     LoadBoats();
 }