private void sbConnect() { ConnectionSelect objConnectionSelect; try { objConnectionSelect = new ConnectionSelect(true); objConnectionSelect.ShowDialog(); objConnectionSelect = null; if (SpinerBaseBO.Instance.actualConnection is null == false) { lblConnection.Content = SpinerBaseBO.Instance.actualConnection.Name.Trim() + " - " + SpinerBaseBO.Instance.actualConnection.DataBaseType.ToString(); } else { lblConnection.Content = "Not connected."; } sbFilter(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Connections = ((SpinerBase.Layers.FrontEnd.ConnectionSelect)(target)); #line 9 "..\..\..\..\Layers\FrontEnd\ConnectionSelect.xaml" this.Connections.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.grdPrincipal = ((System.Windows.Controls.Grid)(target)); return; case 3: this.imgBackground = ((System.Windows.Controls.Image)(target)); return; case 4: this.txtName = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.txtDescription = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.txtServer = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.txtDatabase = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.cmbType = ((System.Windows.Controls.ComboBox)(target)); return; case 9: this.txtUser = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.txtPassword = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.btnConnect = ((System.Windows.Controls.Button)(target)); #line 99 "..\..\..\..\Layers\FrontEnd\ConnectionSelect.xaml" this.btnConnect.Click += new System.Windows.RoutedEventHandler(this.btnConnect_Click); #line default #line hidden return; case 12: this.btnSave = ((System.Windows.Controls.Button)(target)); #line 105 "..\..\..\..\Layers\FrontEnd\ConnectionSelect.xaml" this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click); #line default #line hidden return; case 13: this.btnCancel = ((System.Windows.Controls.Button)(target)); #line 111 "..\..\..\..\Layers\FrontEnd\ConnectionSelect.xaml" this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click); #line default #line hidden return; case 14: this.wrpConnections = ((System.Windows.Controls.WrapPanel)(target)); return; case 15: this.grdLoading = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }