void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Form1 = ((WhatsMyIP.MainWindow)(target)); return; case 2: this.LabelIP = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }