Switched ContainerListView to use the new ObservableCollection class for embedded controls instead of its custom collection; updated ProgressReporterForm to match current coding conventions
git-svn-id: file:///srv/devel/repo-conversion/nuwi@27 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
112e5993ef
commit
985f2622aa
4 changed files with 23 additions and 160 deletions
|
@ -78,13 +78,15 @@ namespace Nuclex.Windows.Forms {
|
|||
}
|
||||
|
||||
/// <summary>Called when the user tries to close the form manually</summary>
|
||||
/// <param name="e">Contains a flag that can be used to abort the close attempt</param>
|
||||
protected override void OnClosing(CancelEventArgs e) {
|
||||
base.OnClosing(e);
|
||||
/// <param name="arguments">
|
||||
/// Contains a flag that can be used to abort the close attempt
|
||||
/// </param>
|
||||
protected override void OnClosing(CancelEventArgs arguments) {
|
||||
base.OnClosing(arguments);
|
||||
|
||||
// Only allow the form to close when the form is ready to close and the
|
||||
// transaction being tracked has also finished.
|
||||
e.Cancel = (Thread.VolatileRead(ref this.state) < 2);
|
||||
arguments.Cancel = (Thread.VolatileRead(ref this.state) < 2);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue