public static MapWindowForm GetInstance() { if (_instance == null) { _instance = new MapWindowForm(); } return(_instance); }
private void OnWindowClosing(object sender, CancelEventArgs e) { if (!MapWindowManager.MapStateFileExists) { SaveMapState(); } _instance = null; this.SavePlacement(); GPXMappingManager.RemoveAllFromMap(); TripMappingManager.Cleanup(); GPXMappingManager.Cleanup(); ParentWindow.ResetDataGrids(); MapWindowManager.CleanUp(); ParentWindow.Focus(); }
private void OnWindowClosed(object sender, EventArgs e) { _instance = null; }