Exemplo 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);
     }
 }
Exemplo n.º 2
0
 private void bEdit_Click(object sender, RoutedEventArgs e)
 {
     CreateProfileWindow window = new CreateProfileWindow(vm.SelectedProfile);
     window.ShowDialog();
 }