Ejemplo n.º 1
0
 private void toolStripButtonEscape_Click(object sender, EventArgs e)
 {
     try
     {
         ICallToolStrip callToolStrip = this as ICallToolStrip;
         if (callToolStrip != null)
         {
             callToolStrip.Escape();
         }
     }
     catch (Exception exception)
     {
         GlobalExceptionHandler.ShowExceptionMessageBox(this, exception);
     }
 }
Ejemplo n.º 2
0
        private void toolStripButtonEscape_Click(object sender, EventArgs e)
        {
            try
            {
                ICallToolStrip callToolStrip = ActiveMdiChild as ICallToolStrip;
                if (callToolStrip != null)
                {
                    callToolStrip.Escape();
                }

                if (this.MdiChildren.Length == 0)
                {
                    this.DialogResult = System.Windows.Forms.DialogResult.OK;
                }
            }
            catch (Exception exception)
            {
                GlobalExceptionHandler.ShowExceptionMessageBox(this, exception);
            }
        }