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:
Markus Ewald 2009-04-01 19:38:32 +00:00
parent 112e5993ef
commit 985f2622aa
4 changed files with 23 additions and 160 deletions

View file

@ -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>