Ejemplo n.º 1
0
 private void MsgBox_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!usedConfirmBtn)
     {
         DialogResult = DialogResult.OK;
         DialogQueue.CloseCurrent();
     }
 }
Ejemplo n.º 2
0
 private void confirmBtn_Click(object sender, EventArgs e)
 {
     usedConfirmBtn = true;
     DialogResult   = DialogResult.OK;
     DialogQueue.CloseCurrent();
 }