private void MenuItem_Click(object sender, RoutedEventArgs e) { wndSettings swindow = new wndSettings(); bool? result = swindow.ShowDialog(); if(result==true) { AppendStatus("Reinitializing application due to configuration change..."); Reinitialize(); return; } AppendStatus("No changes made, not reinitializing."); }