void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ViewModel = ((Summoner_s_Companion.ViewModels.SummonerViewModel)(target));
                return;

            case 2:
                this.SearchButton = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.PackIcon = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 4:
                this.ProgressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 5:
                this.SearchBox = ((System.Windows.Controls.TextBox)(target));

            #line 46 "..\..\..\Views\SummonerView.xaml"
                this.SearchBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.Search_OnKeyDown);

            #line default
            #line hidden
                return;

            case 6:
                this.NotFoundValidationRule = ((Summoner_s_Companion.Models.SummonerNotFoundValidationRule)(target));
                return;

            case 7:
                this.RegionsComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 57 "..\..\..\Views\SummonerView.xaml"
                this.RegionsComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RegionsComboBox_OnSelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SummonerNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.NotFoundValidationRule = ((Summoner_s_Companion.Models.SummonerNotFoundValidationRule)(target));
                return;

            case 3:
                this.RegionsComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 36 "..\..\..\Views\FirstRunPage.xaml"
                this.RegionsComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RegionsComboBox_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.Colors = ((System.Windows.Controls.ListBox)(target));
                return;

            case 5:

            #line 45 "..\..\..\Views\FirstRunPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ColorButton_OnClick);

            #line default
            #line hidden
                return;

            case 6:

            #line 46 "..\..\..\Views\FirstRunPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ColorButton_OnClick);

            #line default
            #line hidden
                return;

            case 7:

            #line 47 "..\..\..\Views\FirstRunPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ColorButton_OnClick);

            #line default
            #line hidden
                return;

            case 8:

            #line 48 "..\..\..\Views\FirstRunPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ColorButton_OnClick);

            #line default
            #line hidden
                return;

            case 9:
                this.SaveButton = ((System.Windows.Controls.Button)(target));
                return;

            case 10:
                this.ProgressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }