GW2PAO.Modules.Map.Views.MapView.EventTrackerView_Closing C# (CSharp) Method

EventTrackerView_Closing() private method

private EventTrackerView_Closing ( object sender, System e ) : void
sender object
e System
return void
        private void EventTrackerView_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (this.WindowState == System.Windows.WindowState.Normal)
            {
                if (this.ControlsPanel.Visibility == System.Windows.Visibility.Visible)
                {
                    Properties.Settings.Default.MapViewHeight = this.ActualHeight;
                }
                else
                {
                    Properties.Settings.Default.MapViewHeight = this.beforeCollapseHeight;
                }
                Properties.Settings.Default.MapViewWidth = this.Width;
                Properties.Settings.Default.MapViewX = this.Left;
                Properties.Settings.Default.MapViewY = this.Top;
                Properties.Settings.Default.Save();
            }
        }