コード例 #1
0
 private void Form_TestCommitteeUpdate_Load(object sender, EventArgs e)
 {
     if (!(this.bool_Add || Class_TestCommittee.ExistAndCanDeleteAndDelete(myClass_TestCommittee.TestCommitteeID, Enum_zwjKindofUpdate.Exist)))
     {
         MessageBox.Show("不存在该项,可能已删除!");
         this.DialogResult = DialogResult.Cancel;
         this.Close();
         return;
     }
     this.label_ErrMessage.Text = "";
     if (!Class_zwjPublic.myBackColor.IsEmpty)
     {
         this.BackColor = Class_zwjPublic.myBackColor;
     }
     this.userControl_TestCommittee_Base1.InitControl(this.myClass_TestCommittee, this.bool_Add);
 }