Beispiel #1
0
        /// <summary>
        /// Handles the OnClosing event to prevent losing changes made to profiles.
        /// </summary>
        /// <param name="e">Event arguments.</param>
        protected override void OnClosing(CancelEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            base.OnClosing(e);

            e.Cancel = e.Cancel || presenter.ExitApplicationRequested();
        }