void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.customer_ctrl = ((Wpf_emmsil_test.usercontrols.CustomerControl)(target)); return; case 2: this.vending_ctrl = ((Wpf_emmsil_test.usercontrols.VendingMachineControl1)(target)); return; case 3: this.vmachineWallet_ctrl = ((Wpf_emmsil_test.usercontrols.CustomerControl)(target)); return; } this._contentLoaded = true; }