1
Hello, I’m starting to work with WPF and my situation is as follows:
- I have a Mainwindow screen, which persists the application.
- The Mainwindow calls a new screen Regradetailsdialog in a certain function.
- Once a process is executed that closes the screen Rewrite SDIALOG need to update the Mainwindow.
In Mainwindow, the method that calls Regradetailsdialog is below:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
DataContext = this;
}
private void AddRegra(object sender, RoutedEventArgs e)
{
RegraDetailsDialog rdd = new RegraDetailsDialog();
rdd.Show();
}
private void AtualizaTela(object sender, RoutedEventArgs e)
{
MessageBox.Show("teste");
}
}
How do I, as soon as the Regradetailsdialog is closed, call the method AtualizaTela
in Mainwindow?
You need to call a method from another form... Correct ? Note my answer.
– Pedro