Why this first code works
MessageBox.Show("No Applicants\nFirst Add applicants with dataentryaccount");
MainWindow mw = new MainWindow();
mw.Show();
this.Close();
But this second code doesn't show the mw window
MessageBox.Show("No Applicants\nFirst Add applicants with dataentryaccount");
MainWindow mw = new MainWindow();
this.Close();
mw.Show();
Although when debugged Line by Line all these lines are executed.