private void BtCadastrarNovo_Click(object sender, RoutedEventArgs e)
        {
            CrudAtorView crudAtorView = new CrudAtorView();

            ConfiguracoesDeView.ConfigurarWindow(this, crudAtorView);
            this.Hide();
            crudAtorView.ShowDialog();
            ConfiguracoesDeView.ConfigurarWindow(crudAtorView, this);
            RecarregarDataGrid();
            this.Visibility = Visibility.Visible;
        }
 private void BtEditar_Click(object sender, RoutedEventArgs e)
 {
     if (ListaDeAtoresViewModel.ExisteAtorSelecionado())
     {
         CrudAtorView crudAtorView = new CrudAtorView(ListaDeAtoresViewModel.AtorSelecionado.Id);
         ConfiguracoesDeView.ConfigurarWindow(this, crudAtorView);
         this.Hide();
         crudAtorView.ShowDialog();
         ConfiguracoesDeView.ConfigurarWindow(crudAtorView, this);
         RecarregarDataGrid();
         this.Visibility = Visibility.Visible;
     }
     else
     {
         MessageBox.Show("Nenhum colaborador selecionado!", "Aviso!");
     }
 }