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