Esempio n. 1
0
 private void miAddProfile_Click(object sender, RoutedEventArgs e)
 {
     var window = new CreateProfileWindow();
     window.ShowDialog();
     if(window.CreateClicked)
     {
         vm.Profiles.Add(window.DataContext as Profile);
     }
 }
 private void bEdit_Click(object sender, RoutedEventArgs e)
 {
     CreateProfileWindow window = new CreateProfileWindow(vm.SelectedProfile);
     window.ShowDialog();
 }