public void OnClosing(object sender, System.ComponentModel.CancelEventArgs e) { LocationsModel.Save(); _core.Dispose(); }