void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ControlPanel = ((ICTProjectPOS.Report_ControlPanel)(target)); return; case 2: this.ContentPanel = ((ICTProjectPOS.Report_ContentPanel)(target)); return; } this._contentLoaded = true; }