/// <summary> /// Shows the rename 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 buttonRenameSetup_Click(object sender, RoutedEventArgs e) { IFCExportConfiguration configuration = GetSelectedConfiguration(); String oldName = configuration.Name; RenameExportSetupWindow renameWindow = new RenameExportSetupWindow(m_configurationsMap, oldName); renameWindow.Owner = this; renameWindow.ShowDialog(); if (renameWindow.DialogResult.HasValue && renameWindow.DialogResult.Value) { String newName = renameWindow.GetName(); configuration.Name = newName; m_configurationsMap.Remove(oldName); m_configurationsMap.Add(configuration); UpdateConfigurationsList(newName); } }