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