private bool LoadIntegrationConnectionControl( string integrationName ) { bool controlLoaded = false; ClearConnectionControl(); var integration = Integrations.Where( i => i.Name == integrationName ).FirstOrDefault(); if ( integration != null ) { ConnectionControl = integration.Component.GetConnectionControl(); icConnectionSettings.Items.Add( ConnectionControl ); controlLoaded = true; } return controlLoaded; }
private void ClearConnectionControl() { btnTestConnection.Visibility = Visibility.Hidden; icConnectionSettings.Items.Clear(); ConnectionControl = null; }