示例#1
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     this.ParentForm.DialogResult = DialogResult.OK;
     ClickOK?.Invoke(sender, e);
     if (this.ParentForm.DialogResult == DialogResult.OK)
     {
         this.ParentForm.Close();
     }
 }
示例#2
0
 private void btnApply_Click(object sender, EventArgs e)
 {
     ClickOK?.Invoke(sender, e);
 }