Interaction logic for ContactEditorWindow.xaml
Inheritance: MahApps.Metro.Controls.MetroWindow
Exemplo n.º 1
0
 protected void ShowAddContactWindowExecuted()
 {
     var addContactWindow = new ContactEditorWindow();
     addContactWindow.Show();
 }
Exemplo n.º 2
0
 private void ShowContactEditorExecuted()
 {
     var contactVm = new ContactEditorViewModel(Model);
     var contact = new ContactEditorWindow();
     contact.DataContext = contactVm;
     contactVm.Rejected += contact.Close;
     contactVm.Saved += contact.Close;
     contact.Show();
 }