Пример #1
0
 public AddCase(string planID, ViewPlan_Tester_2 preF)
 {
     this.planID = planID;
     preform     = preF;
     InitializeComponent();
     comboBox_status.SelectedIndex = 0;
     textBox_ID.Text = "待分配";
     // textBox_ID.ReadOnly = true;
     mode = 1;
 }
Пример #2
0
 public AddCase(string planID, ViewPlan_Tester_2 preF, string case_id, string case_name, string description, string case_step, int status)
 {
     this.planID = planID;
     InitializeComponent();
     textBox_caseName.Text         = case_name;
     textBox_description.Text      = description;
     textBox_step.Text             = case_step;
     comboBox_status.SelectedIndex = status;
     textBox_ID.Text          = case_id;
     preform                  = preF;
     this.Text                = "查看用例";
     this.button_confirm.Text = "确认修改";
     this.button_giveUp.Text  = "返回";
     mode = 2;
 }
Пример #3
0
 public AddCase(int MODE, string planID, ViewPlan_Tester_2 preF, string case_id, string case_name, string description, string case_step, int status)
 {
     if (MODE == 1) // 不能编辑
     {
         this.planID = planID;
         InitializeComponent();
         textBox_caseName.Text         = case_name;
         textBox_description.Text      = description;
         textBox_step.Text             = case_step;
         comboBox_status.SelectedIndex = status;
         textBox_ID.Text             = case_id;
         preform                     = preF;
         this.Text                   = "查看用例";
         this.button_confirm.Text    = "确认修改";
         this.button_confirm.Visible = false;
         this.button_giveUp.Text     = "返回";
         mode = 2;
         textBox_caseName.ReadOnly    = true;
         textBox_description.ReadOnly = true;
         textBox_step.ReadOnly        = true;
         comboBox_status.Enabled      = false;
         textBox_ID.ReadOnly          = true;
     }
 }