Beispiel #1
0
        public virtual void Cerrar(FormClosingEventArgs e)
        {
            if (base.m_ResultProcess == EnumResult.SUCESS)
            {
                return;
            }
            FrmMessageBox MsBox = new FrmMessageBox();

            MsBox.Show(MessageBoxIcon.Question);
            MsBox.ShowDialog();
            if (MsBox.m_ResultProcess == EnumResult.SUCESS)
            {
                base.m_ResultProcess = EnumResult.CANCEL;
                base.Start();
            }
            else
            {
                e.Cancel = true;
            }
        }
Beispiel #2
0
 public virtual void Cerrar(FormClosingEventArgs e) {
     if (base.m_ResultProcess == EnumResult.SUCESS) { return; }
     FrmMessageBox MsBox = new FrmMessageBox();
     MsBox.Show(MessageBoxIcon.Question);
     MsBox.ShowDialog();
     if (MsBox.m_ResultProcess == EnumResult.SUCESS)
     {
         base.m_ResultProcess = EnumResult.CANCEL;
         base.Start();
     }
     else { e.Cancel = true; }
 }