void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.cvm = ((CountryWPF.ViewModel.CountryViewModel)(target));
         return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cvm = ((CountryWPF.ViewModel.CountryViewModel)(target));
                return;

            case 2:

            #line 19 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);

            #line default
            #line hidden
                return;

            case 3:
                this.ButtonExit = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.ButtonExit.Click += new System.Windows.RoutedEventHandler(this.ButtonExit_Click);

            #line default
            #line hidden
                return;

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

            case 5:
                this.TransitioningContentSlide = ((MaterialDesignThemes.Wpf.Transitions.TransitioningContent)(target));
                return;

            case 6:
                this.GridCursor = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.ListViewMenu = ((System.Windows.Controls.ListView)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.ListViewMenu.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListViewMenu_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cvm = ((CountryWPF.ViewModel.CountryViewModel)(target));
                return;

            case 2:
                this.TransitioningContentSlide = ((MaterialDesignThemes.Wpf.Transitions.TransitioningContent)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cvm = ((CountryWPF.ViewModel.CountryViewModel)(target));
                return;

            case 2:
                this.TransitioningContentSlide = ((MaterialDesignThemes.Wpf.Transitions.TransitioningContent)(target));
                return;

            case 3:
                this.countryName = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 6:
                this.countryPath = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:

            #line 42 "..\..\..\Views\AddCountry.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetTextBoxes);

            #line default
            #line hidden
                return;

            case 8:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }