Beispiel #1
0
        /// <summary>
        /// The OpenFile
        /// </summary>
        /// <param name="fileName">The fileName<see cref="string"/></param>
        /// <returns>The <see cref="bool"/></returns>
        private bool OpenFile(string fileName)
        {
            var e = new OpenEventArgs()
            {
                FileName = fileName, Failed = false
            };

            OnOpen(e);
            return(!e.Failed);
        }
Beispiel #2
0
 /// <summary>
 /// The OnOpen
 /// </summary>
 /// <param name="e">The e<see cref="OpenEventArgs"/></param>
 protected virtual void OnOpen(OpenEventArgs e)
 {
     Open?.Invoke(this, e);
 }