Example #1
0
 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();
 }
Example #2
0
 public LocationAddWindow()
 {
     view = new AddLocationWindow();
 }
Example #3
0
 private void AddLocationBtn_Click(object sender, RoutedEventArgs e)
 {
     _addLocationWindow = new AddLocationWindow();
     _addLocationWindow.Show();
     this.Close();
 }