protected sealed override void OnFormClosing(FormClosingEventArgs e) { foreach (IEditPage editPage in verticalTabs.Items) { editPage.Cleanup(); } var args = new PropertiesDialogClosingEventArgs(_action, _startAction); OnFormClosing(args); _startAction = args.StartAction; }
protected virtual void OnFormClosing(PropertiesDialogClosingEventArgs e) { var handler = FormClosing; if (handler != null) { handler(this, e); } }