コード例 #1
0
 protected override void OnClosing(CancelEventArgs e)
 {
     if (this.DialogResult != DialogResult.OK)
     {
         if (mathExpEditor1.Changed)
         {
             e.Cancel = UIUtil.AskCancelCloseDialog(this);
         }
     }
     if (!e.Cancel)
     {
         mathExpEditor1.AbortTest();
         mathExpEditor1.MathExpression.EitorBounds = this.Bounds;
         base.OnClosing(e);
     }
 }
コード例 #2
0
 protected override void OnClosing(CancelEventArgs e)
 {
     if (this.DialogResult != DialogResult.OK)
     {
         if (holder.Changed)
         {
             e.Cancel = UIUtil.AskCancelCloseDialog(this);
         }
     }
     if (!e.Cancel)
     {
         holder.AbortTest();
         holder.OnClosing();
         base.OnClosing(e);
     }
 }
コード例 #3
0
 protected override void OnClosing(CancelEventArgs e)
 {
     if (holder.Changed && this.DialogResult != DialogResult.OK)
     {
         e.Cancel = UIUtil.AskCancelCloseDialog(this);
         if (!e.Cancel)
         {
             holder.CancelEdit();
         }
     }
     if (!e.Cancel)
     {
         MethodEditContext.IsWebPage = false;
         holder.AbortTest();
         holder.OnClosing();
         base.OnClosing(e);
     }
 }