示例#1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (this.selectedMembers.Count == 0)
     {
         ErrorMessageBox errorMessageBox = new ErrorMessageBox(this, "No selection made");
         errorMessageBox.ShowDialog();
     }
     else
     {
         Form_Edit_New form = new Form_Edit_New(this, this.selectedMembers);
         form.ShowDialog();
     }
 }
示例#2
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (this.selectedMembers.Count > 0)
     {
         //ConfirmationBox conf = new ConfirmationBox();
         //conf.ShowDialog();
     }
     else if (this.selectedMembers.Count == 0)
     {
         ErrorMessageBox errorMessageBox = new ErrorMessageBox(this, "No selection made");
         errorMessageBox.ShowDialog();
     }
 }