SDownload.Program.OnClosing C# (CSharp) Method

OnClosing() protected method

Closes any open forms before closing itself
protected OnClosing ( System e ) : void
e System Not used
return void
        protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            if (_settingsForm != null)
                _settingsForm.Close();

            if (_listener != null)
                _listener.Stop();

            base.OnClosing(e);
        }