Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.This = ((ICSharpCode.Data.Core.UI.UserControls.DatabasesTreeView)(target));
                return;

            case 2:
                this.tviDatabases = ((System.Windows.Controls.TreeViewItem)(target));
                return;

            case 3:

            #line 20 "..\..\..\UserControls\DatabasesTreeView.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.mnuAddDatabase_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 21 "..\..\..\UserControls\DatabasesTreeView.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.mnuRefresh_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        /// <summary>
		/// Creates a new ReportExplorer object
		/// </summary>	
		public DatabasesTreeViewPad() : base()
		{
			SD.Workbench.ActiveViewContentChanged += ActiveViewContentChanged;
			SD.Workbench.ViewClosed += ActiveViewClosed;

            _control = new DatabasesTreeViewUserControl();
			_databasesTreeView = new DatabasesTreeView();
            _databasesTreeView.AdditionalNodes.Add(CSDLDatabaseTreeViewAdditionalNode.Instance);
            DockPanel.SetDock(_databasesTreeView, Dock.Top);
            _control.Content.Children.Add(_databasesTreeView);
			
			_instance = this;
        }
Beispiel #3
0
		public PullModelPanel()
		{
			InitializeComponent();
          
			base.EnableFinish = false;
			base.EnableNext = false;
			base.EnableCancel = true;
			this.firstDrag = true;
			base.IsLastPanel = false;
			this.txtSqlString.Enabled = false;

            this.databasesTreeHost = new ElementHost() { Dock = DockStyle.Fill };
            this.databasesTree = new DatabasesTreeView();
            this.databasesTree.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(databasesTree_SelectedItemChanged);
            this.databasesTreeHost.Child = this.databasesTree;
            this.label2.Controls.Add(databasesTreeHost);

			Localize();
		}