Beispiel #1
0
        private void btnTransmission_Click(object sender, EventArgs e)
        {
            //TODO jesli nie zapisany poprzedni stan to komunikat, ze utraci
            //InitNewTransmission();

            _transmissionCotroler = new TransmissionCotroller();
            _transmissionCotroler.Init();
            _transmissionCotroler.EndTransmissionEvent += new TransmissionCotroller.EndTransmission(_transmissionCotroler_EndTransmissionEvent);
            _waitForm = new WaitForm();

            ContainerChooseForm contChooseForm = new ContainerChooseForm();
            contChooseForm.Init();
            if (contChooseForm.ShowDialog() == DialogResult.OK)
            {

                if (contChooseForm.CheckedContainers.Count == 0)
                {
                    MessageBox.Show("Nie wybrano żadnego zbiornika");
                    return;
                }

                _waitForm = new WaitForm();
                _waitForm.Show();

                _transmissionCotroler.Start(contChooseForm.CheckedContainers);
            }
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     TransmissionCotroller con = new TransmissionCotroller();
     con.TestInit();
 }