コード例 #1
0
        /// <summary>
        /// The AllowSaveFile
        /// </summary>
        /// <returns>The <see cref="bool"/></returns>
        private bool AllowSaveFile()
        {
            var e = new FileSavingEventArgs()
            {
                Cancel = false
            };

            OnFileSaving(e);
            return(!e.Cancel);
        }
コード例 #2
0
 /// <summary>
 /// The OnFileSaving
 /// </summary>
 /// <param name="e">The e<see cref="FileSavingEventArgs"/></param>
 protected virtual void OnFileSaving(FileSavingEventArgs e)
 {
     FileSaving?.Invoke(this, e);
 }