void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainWindow = ((Demo1.View.MainWindow)(target)); return; case 2: this.grid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.SearchById = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.SearchByName = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.LstVw = ((System.Windows.Controls.DataGrid)(target)); return; } this._contentLoaded = true; }