Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/11/10 19:32:52 (12 years ago)
Author:
mkommend
Message:

implemented fix for ticket #966

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/View.cs

    r3177 r3301  
    119119    }
    120120
    121     private void OnClosingHelper(object sender, FormClosingEventArgs e) {
     121    internal void OnClosingHelper(object sender, FormClosingEventArgs e) {
     122      FormClosingEventArgs eventArgs = new FormClosingEventArgs(this.closeReason, e.Cancel);
    122123      if (this.closeReason != CloseReason.None)
    123         this.OnClosing(new FormClosingEventArgs(this.closeReason, e.Cancel));
     124        this.OnClosing(eventArgs);
    124125      else
    125126        this.OnClosing(e);
    126127
     128      if (eventArgs.Cancel != e.Cancel)
     129        e.Cancel = eventArgs.Cancel;
    127130      this.closeReason = CloseReason.None;
    128131    }
     
    131134    }
    132135
    133     private void OnClosedHelper(object sender, FormClosedEventArgs e) {
     136    internal void OnClosedHelper(object sender, FormClosedEventArgs e) {
    134137      if (this.closeReason != CloseReason.None)
    135138        this.OnClosed(new FormClosedEventArgs(this.closeReason));
Note: See TracChangeset for help on using the changeset viewer.