Apricot.App.OnExit C# (CSharp) Method

OnExit() protected method

protected OnExit ( System.Windows.ExitEventArgs e ) : void
e System.Windows.ExitEventArgs
return void
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            if (!this.sessionEnding)
            {
                Script.Instance.Save();

                if (this.runtime != null)
                {
                    this.runtime.Shutdown();
                }
            }
        }