private void addModelClose(object sender, EventArgs e) { locationViewModel.Apply -= new EventHandler(addModelApply); locationViewModel.Close -= new EventHandler(addModelClose); locationWindow.Closed -= new EventHandler(addModelClose); locationWindow = null; locationViewModel = null; Application.Current.MainWindow.Focus(); }
public LocationAddWindow() { view = new AddLocationWindow(); }
private void AddLocationBtn_Click(object sender, RoutedEventArgs e) { _addLocationWindow = new AddLocationWindow(); _addLocationWindow.Show(); this.Close(); }