コード例 #1
0
        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;
        }
コード例 #2
0
 private void ClearConnectionControl()
 {
     btnTestConnection.Visibility = Visibility.Hidden;
     icConnectionSettings.Items.Clear();
     ConnectionControl = null;
 }