private void Button_Click(object sender, RoutedEventArgs e) { WinManageMovie win = new WinManageMovie(); win.ShowDialog(); var main = Window.GetWindow(this) as MainWindow; main.LoadMovieControls(); }
// Abre a tela de edição para o filme private void EditMovie(object sender, RoutedEventArgs e) { WinManageMovie win = new WinManageMovie(SelectedMovie); win.ShowDialog(); grid_details.Visibility = Visibility.Collapsed; MainGrid.RowDefinitions[1].Height = new GridLength(Height); LoadMovieControls(); ShowMovieDetails(SelectedMovie); }