private void OnComponentRename(object component, string oldName, string newName) { ConfigurationDesignHost host = provider as ConfigurationDesignHost; if (host != null) { host.OnComponentRename(new ComponentRenameEventArgs(component, oldName, newName)); } }
public MainForm() { designHost = new ConfigurationDesignHost(); InitializeComponent(); InitializeHierarchy(); AddServices(); SetupExceptionHandlers(); defaultText = this.Text; hierarchyDirtyMap = new Hashtable(CaseInsensitiveHashCodeProvider.Default, CaseInsensitiveComparer.Default); hierarchyNames = new StringCollection(); }