void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CusWin = ((HeaviSoft.UIDesign.MainWindow)(target)); return; case 2: this.c = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }