Eto.Test.MainForm.OnClosing C# (CSharp) Method

OnClosing() protected method

protected OnClosing ( System.CancelEventArgs e ) : void
e System.CancelEventArgs
return void
		protected override void OnClosing(CancelEventArgs e)
		{
			base.OnClosing(e);
			Log.Write(this, "Closing");
			/*
			 * Note that on OS X, windows usually close, but the application will keep running.  It is
			 * usually better to handle the Application.OnTerminating event instead.
			 * 
			var result = MessageBox.Show (this, "Are you sure you want to close?", MessageBoxButtons.YesNo);
			if (result == DialogResult.No) e.Cancel = true;
			*/
		}