Beispiel #1
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            if (TestEnd1CheckEdit.Checked && TestEnd2CheckEdit.Checked)
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("The Test is Done!");
            }
            else
            {
                PublicVar.SelectProgram       = true;
                PublicVar.Discription_program = txtDiscription.Text;
                PublicVar.ProgramID           = txtProgramID.Text;
                PublicVar.DateTest            = dateEdit1.DateTime;

                PublicVar.Force1     = txtForce1.Text;
                PublicVar.Counter1   = txtCounter1.Text == "" ? 0 : Convert.ToInt32(txtCounter1.Text);
                PublicVar.Course1    = txtCourse1.Text;
                PublicVar.Dimension1 = txtDimension1.Text;
                PublicVar.TestEnd1   = Convert.ToBoolean(TestEnd1CheckEdit.CheckState);

                PublicVar.Force2     = txtForce2.Text;
                PublicVar.Counter2   = txtCounter2.Text == "" ? 0 : Convert.ToInt32(txtCounter2.Text);
                PublicVar.Course2    = txtCourse2.Text;
                PublicVar.Dimension2 = txtDimension2.Text;
                PublicVar.TestEnd2   = Convert.ToBoolean(TestEnd2CheckEdit.CheckState);

                frmRead _Read = new frmRead();
                _Read.ShowDialog();
            }

            //   PublicVar.ID_C =Convert.ToInt32(txtProgramID.Text);

            //PublicVar.ConnPortWieght = cbxPort.Text;
            //frmRead _frm = new frmRead();
            //_frm.ShowDialog();
        }
Beispiel #2
0
 private void simpleButton4_Click(object sender, EventArgs e)
 {
     if (PublicVar.SelectProgram)
     {
         frmRead _frmRead = new frmRead();
         _frmRead.ShowDialog();
         _frmRead.Dispose();
     }
     else
     {
         DevExpress.XtraEditors.XtraMessageBox.Show("Test Program Not Selected");
         frmMain _frmMain = new frmMain();
         _frmMain.ShowDialog();
     }
 }