/// <summary> /// Shows the new setup control and updates with the results. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">Event arguments that contains the event data.</param> private void buttonNewSetup_Click(object sender, RoutedEventArgs e) { String name = GetNewSetupName(); NewExportSetupWindow nameWindow = new NewExportSetupWindow(m_configurationsMap, name); nameWindow.Owner = this; nameWindow.ShowDialog(); if (nameWindow.DialogResult.HasValue && nameWindow.DialogResult.Value) { CreateNewEditableConfiguration(null, nameWindow.GetName()); } }