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();
}
}