12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System.ComponentModel;
- using System.Windows.Forms;
- using Microsoft.Windows.Forms;
- namespace Update.Controls
- {
-
-
-
- public class BaseForm : UIForm
- {
- private bool m_UserClosing;
-
-
-
-
- public virtual void ShowCore(IWin32Window owner)
- {
- this.Show(owner);
- }
-
-
-
- public virtual void CloseCore()
- {
- this.m_UserClosing = true;
- this.Close();
- }
-
-
-
-
- protected override void OnClosing(CancelEventArgs e)
- {
- base.OnClosing(e);
- e.Cancel = !this.m_UserClosing;
- this.m_UserClosing = false;
- }
- }
- }
|