void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ctlChatHistory = ((Chat.Presentation.ctlViewHistory)(target)); return; case 2: this.grdMain = ((System.Windows.Controls.Grid)(target)); return; case 3: this.tvHistory = ((System.Windows.Controls.TreeView)(target)); return; case 4: this.rtbMessages = ((System.Windows.Controls.RichTextBox)(target)); return; case 5: this.btnClose = ((System.Windows.Controls.Button)(target)); return; case 6: this.tbMessage = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }