Exemplo n.º 1
0
 public void NewGenreCmdExecute()
 {
     EditGenreDialog dlg = new EditGenreDialog();
     EditGenreVM vm = new EditGenreVM();
     dlg.DataContext = vm;
     dlg.ShowDialog();
 }
Exemplo n.º 2
0
 public void MouseDoubleClickCmdExecute(MouseButtonEventArgs args)
 {
     if (selectedGenre != null && (args == null || args.ChangedButton == MouseButton.Left))
     {
         EditGenreDialog dlg = new EditGenreDialog();
         EditGenreVM vm = new EditGenreVM(selectedGenre.Name);
         dlg.DataContext = vm;
         dlg.ShowDialog();
     }
 }