/// <summary> /// The AllowOpenFile /// </summary> /// <returns>The <see cref="bool"/></returns> private bool AllowOpenFile() { var e = new OpeningEventArgs() { Cancel = false }; OnFileOpening(e); return(!e.Cancel); }
/// <summary> /// The OnFileOpening /// </summary> /// <param name="e">The e<see cref="OpeningEventArgs"/></param> protected virtual void OnFileOpening(OpeningEventArgs e) { FileOpening?.Invoke(this, e); }