Beispiel #1
0
        private void startCounter()
        {
            bool isCounter = SettingsController.getTimeSettingForm().isCounter;

            if (targetTimer.isRunning == true)
            {
                if (isCounter == false)
                {
                    targetTimer.startStopWatch();
                    targetTimer.Show();
                }
                else
                {
                    targetTimer.setTimer(SettingsController.getTimeSettingForm().getTimeInSeconds());
                    targetTimer.Show();
                }
            }
        }
Beispiel #2
0
        private void pointingDeviceMenuItem_Click(object sender, EventArgs e)
        {
            if (pointingDeviceMenuItem.Checked == true)
            {
                ShootPointController.getController().isProjectLaser = false;
                pointingDeviceMenuItem.Checked = false;
                SettingsController.getShootSettingForm().shootBySradioButton.Checked = true;
                SettingsController.getShootSettingForm().shootByTrigerRadioButton.Checked = false;
            }
            else
            {
                ShootPointController.getController().isProjectLaser = true;
                pointingDeviceMenuItem.Checked = true;

                SettingsController.getShootSettingForm().shootBySradioButton.Checked = false;
                SettingsController.getShootSettingForm().shootByTrigerRadioButton.Checked = true;
            }
        }
Beispiel #3
0
        private void shootSettingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult r = SettingsController.getShootSettingForm().ShowDialog();

            if (r == DialogResult.OK)
            {
                if (SettingsController.getShootSettingForm().shootBySradioButton.Checked == true)
                {
                    pointingDeviceMenuItem.Checked = false;
                    ShootPointController.getController().isProjectLaser = false;
                }
                else
                {
                    pointingDeviceMenuItem.Checked = true;
                    ShootPointController.getController().isProjectLaser = true;
                }

                shootTime = SettingsController.getShootSettingForm().shootTime;
            }
        }
Beispiel #4
0
 private void timeSettingToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SettingsController.getTimeSettingForm().ShowDialog();
     //this.TopMost = false;
     //t.TopMost = true;
 }