示例#1
0
        private void startToolStripButton_Click(object sender, EventArgs e)
        {
            string countData = "";

            if (Login.loginOther == 1)
            {
                try
                {
                    DatabaseIDU data = new DatabaseIDU();
                    countData = data.CountData(Login.TraineeId);
                    VideoProcess.fileNameEnd = Login.TraineeId + countData;
                }
                catch (Exception ex)
                {
                }

                if (File.Exists(Login.fileName + VideoProcess.fileNameEnd + "Log" + ".txt"))
                {
                    File.Delete(Login.fileName + VideoProcess.fileNameEnd + "Log" + ".txt");
                }
                if (File.Exists(Login.fileName + VideoProcess.fileNameEnd + ".txt"))
                {
                    File.Delete(Login.fileName + VideoProcess.fileNameEnd + ".txt");
                }
                ShootPointController.getController().resetPoint();
                targetTimer.isRunning      = true;
                targetTimer.singleShotTime = 0;
                VideoProcess.getPoint      = 1;
                VideoProcess.count         = 1;
                //Starting counter
                startCounter();
                setControlToolButton(false, true, true);
                mainTargetInfo.setShotLabelInfo(0, 0);
            }
            else
            {
                MessageBox.Show("Please,Login as trainee");
            }


            //gbLogin.Visible = true;
            //dtLogin.Value = DateTime.Now;
        }