private void LoadProjectHandler(IProjectHandler projectHandler) { UnloadProjectHandler(); ProjectSelectorHandler = projectHandler; SourceSelector = ProjectSelectorHandler.CreateSourceSelector(); DestinationSelector = ProjectSelectorHandler.CreateDestinationSelector(); PanelSource.Controls.Add(SourceSelector.Control); PanelDestination.Controls.Add(DestinationSelector.Control); }
private void UnloadProjectHandler() { if (ProjectSelectorHandler != null) { PanelSource.Controls.Remove((Control)SourceSelector); PanelDestination.Controls.Remove((Control)DestinationSelector); ProjectSelectorHandler.Unload(); ProjectSelectorHandler = null; } }