private void btnNewMovie_Click(object sender, RoutedEventArgs e) { var newMovWindow = new NewMovieWindow(getMoviesVM()); newMovWindow.Owner = this; newMovWindow.Show(); }
/// <summary> /// valib filmi ja avab filmi vaate aknas /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lstViewMovies_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (lstViewMovies.SelectedItems.Count == 1) { DBA.Movie movie = (DBA.Movie)lstViewMovies.SelectedItem; var movieWindow = new NewMovieWindow(getMoviesVM(), movie); movieWindow.Owner = this; movieWindow.ShowDialog(); } }