Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CurrencySelectorFrom = ((CurrencyConverter.Controls.CurrencySelector)(target));
                return;

            case 2:
                this.CurrencySelectorTo = ((CurrencyConverter.Controls.CurrencySelector)(target));
                return;

            case 3:
                this.InputFrom = ((CurrencyConverter.Controls.CurrencyInput)(target));
                return;

            case 4:
                this.InputTo = ((CurrencyConverter.Controls.CurrencyInput)(target));
                return;

            case 5:
                this.MajorCurrencies = ((CurrencyConverter.Controls.CurrencyGrid)(target));
                return;

            case 6:

            #line 103 "..\..\..\Views\CurrencyConversion.xaml"
                ((System.Windows.Documents.Hyperlink)(target)).RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.Hyperlink_RequestNavigate);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.InputFrom = ((CurrencyConverter.Controls.CurrencyInput)(target));
                return;

            case 2:
                this.InputTo = ((CurrencyConverter.Controls.CurrencyInput)(target));
                return;
            }
            this._contentLoaded = true;
        }