private void ManageAltNames_Click(object sender, RoutedEventArgs e) { NameManagementWindow window = new NameManagementWindow(ViewModel.AltNames); window.Closed += new System.EventHandler(AddNames_Closed); window.Show(); }
private void AddNames_Closed(object sender, System.EventArgs e) { NameManagementWindow window = sender as NameManagementWindow; if (window.DialogResult == true) { ViewModel.AltNames = window.AltNames; } }