Esempio n. 1
0
        /// <summary>
        /// The AllowNewFile
        /// </summary>
        /// <returns>The <see cref="bool"/></returns>
        private bool AllowNewFile()
        {
            var e = new FileNewingEventArgs()
            {
                Cancel = false
            };

            OnFileNewing(e);
            return(!e.Cancel);
        }
Esempio n. 2
0
 /// <summary>
 /// The OnFileNewing
 /// </summary>
 /// <param name="e">The e<see cref="FileNewingEventArgs"/></param>
 private void OnFileNewing(FileNewingEventArgs e)
 {
     FileNewing?.Invoke(this, e);
 }