Exemple #1
0
        public void SetKSCXComBox()
        {
            if (this.txtBoxXKSCX.InvokeRequired)
            {
                SetKSCXComBoxDelegate del = new SetKSCXComBoxDelegate(SetKSCXComBox);
                this.txtBoxXKSCX.Invoke(del);
            }
            else
            {
                switch (cartype)
                {
                case ExamType.MOTOR_2:
                    this.txtBoxXKSCX.Items.Clear();
                    this.txtBoxXKSCX.Items.Add("E");
                    this.txtBoxXKSCX.Items.Add("F");
                    EnableAndSetText(this.txtBoxXKSCX, true, "E");
                    break;

                case ExamType.MOTOR_3:
                    this.txtBoxXKSCX.Items.Clear();
                    this.txtBoxXKSCX.Items.Add("D");
                    EnableAndSetText(this.txtBoxXKSCX, true, "D");
                    break;
                }
            }
        }
Exemple #2
0
 public void SetKSCXComBox()
 {
     if (this.txtBoxXKSCX.InvokeRequired)
     {
         SetKSCXComBoxDelegate del = new SetKSCXComBoxDelegate(SetKSCXComBox);
         this.txtBoxXKSCX.Invoke(del);
     }
     else
     {
         this.txtBoxXKSCX.Items.Clear();
         foreach (string cx in CXList)
         {
             this.txtBoxXKSCX.Items.Add(cx);
         }
         EnableAndSetText(this.txtBoxXKSCX, true, CXList[0]);
     }
 }