void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.uc = ((SBMLibrary.Controls.UserControl1)(target)); return; case 2: this.txtSearch = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }