private void ucButtonSave_Click(object sender, System.EventArgs e)
 {
     this.SelectedErrorCode = errorCodeSelect.GetSelectedErrorCodes();
     if (this.SelectedErrorCode == null || this.SelectedErrorCode.Length < 1)
     {
         if (MessageBox.Show(this, "请选择不良代码", "请选择不良代码", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
         {
             this.Close();
         }
     }
     else
     {
         this.Close();
     }
 }
Exemple #2
0
 private object[] GetSelectedErrorCodes()
 {
     object[] result = errorCodeSelect.GetSelectedErrorCodes();
     return(result);
 }