コード例 #1
0
ファイル: FindSession.cs プロジェクト: quangthi/Saturn
        private void btnReplay_Click(object sender, EventArgs e)
        {
            if (selectedDataPath == "")
            {
                MessageBox.Show("Chưa chọn phiên hỏi cung!");
                return;
            }

            replayForm = new RecordingForm(this);

            this.Hide();
            replayForm.ShowDialog();

            this.Show();
        }
コード例 #2
0
ファイル: NewSessionForm.cs プロジェクト: quangthi/Saturn
        private void btnNewSession_Click(object sender, EventArgs e)
        {
            if (!getNewSessionInfo())
            {
                return;
            }

            getSuspectInfoByCode(txtSuspectCode.Text, ref CommonParam.mSesData.suspectData);
            getInspectInfoByCode(txtInspectCode.Text, ref CommonParam.mSesData.inspectData);
            getSupervisorInforByCode(txtSupeCode1.Text, ref CommonParam.mSesData.supervisorData1);
            getSupervisorInforByCode(txtSupeCode2.Text, ref CommonParam.mSesData.supervisorData2);
            getCaseInfoByCode(txtCaseCode.Text, ref CommonParam.mSesData.caseData);

            CommonParam.SessionFolderName = "PHC_" + DateTime.Now.ToString(@"yyyy_MM_dd.HH_mm_ss");
            System.IO.Directory.CreateDirectory(CommonParam.ProgramPath + "\\" + CommonParam.SessionFolderName);
            recform = new RecordingForm(this);

            CommonParam.mSesData.sessBeginTime = DateTime.Now.Hour.ToString() + " giờ " + DateTime.Now.Minute.ToString() + " phút";
            this.Hide();
            recform.ShowDialog();
            CommonParam.saveSession();
            this.Show();
        }