コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FirstWindow = ((POS.MainView)(target));
                return;

            case 4:

            #line 176 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TakeOrderBtnClick);

            #line default
            #line hidden
                return;

            case 5:
                this.sv = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 6:
                this.sp = ((System.Windows.Controls.StackPanel)(target));

            #line 184 "..\..\MainWindow.xaml"
                this.sp.MouseMove += new System.Windows.Input.MouseEventHandler(this.sp_MouseMoveOrder);

            #line default
            #line hidden
                return;

            case 7:
                this.drinksListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 8:
                this.sandwichesListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 9:
                this.hamburgersListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 10:
                this.desertListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 11:
                this.menuItemsHamburgersScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 12:

            #line 214 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.sp_MouseMoveMenu);

            #line default
            #line hidden
                return;

            case 13:
                this.menuItemsHamburgers = ((System.Windows.Controls.ListBox)(target));
                return;

            case 14:
                this.menuItemsMexicanScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 15:

            #line 221 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.sp_MouseMoveMenu);

            #line default
            #line hidden
                return;

            case 16:
                this.menuItemsMexican = ((System.Windows.Controls.ListBox)(target));
                return;

            case 17:
                this.menuItemsSandwichesScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 18:

            #line 228 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.sp_MouseMoveMenu);

            #line default
            #line hidden
                return;

            case 19:
                this.menuItemsSandwiches = ((System.Windows.Controls.ListBox)(target));
                return;

            case 20:
                this.menuItemsCroissantScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 21:

            #line 235 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.sp_MouseMoveMenu);

            #line default
            #line hidden
                return;

            case 22:
                this.menuItemsCroissant = ((System.Windows.Controls.ListBox)(target));
                return;

            case 23:
                this.menuItemsPaniniScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 24:

            #line 242 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.sp_MouseMoveMenu);

            #line default
            #line hidden
                return;

            case 25:
                this.menuItemsPanini = ((System.Windows.Controls.ListBox)(target));
                return;

            case 26:
                this.menuItemsMeatScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 27:

            #line 249 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.sp_MouseMoveMenu);

            #line default
            #line hidden
                return;

            case 28:
                this.menuItemsMeat = ((System.Windows.Controls.ListBox)(target));
                return;

            case 29:
                this.menuItemsKidsScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 30:

            #line 256 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.sp_MouseMoveMenu);

            #line default
            #line hidden
                return;

            case 31:
                this.menuItemsKids = ((System.Windows.Controls.ListBox)(target));
                return;

            case 32:
                this.transparentGrayOverlay = ((System.Windows.Shapes.Rectangle)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
ファイル: MainView.g.i.cs プロジェクト: ShawnAndrews/POS
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FirstWindow = ((POS.MainView)(target));
                return;

            case 2:
                this.sv = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 3:
                this.sp = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 5:
                this.sandwichesListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 6:
                this.hamburgersListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 7:
                this.desertListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 8:
                this.menuItemsHamburgersScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 9:
                this.menuItemsHamburgers = ((System.Windows.Controls.ListBox)(target));
                return;

            case 10:
                this.menuItemsMexicanScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 11:
                this.menuItemsMexican = ((System.Windows.Controls.ListBox)(target));
                return;

            case 12:
                this.menuItemsSandwichesScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 13:
                this.menuItemsSandwiches = ((System.Windows.Controls.ListBox)(target));
                return;

            case 14:
                this.menuItemsCroissantScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 15:
                this.menuItemsCroissant = ((System.Windows.Controls.ListBox)(target));
                return;

            case 16:
                this.menuItemsPaniniScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 17:
                this.menuItemsPanini = ((System.Windows.Controls.ListBox)(target));
                return;

            case 18:
                this.menuItemsMeatScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 19:
                this.menuItemsMeat = ((System.Windows.Controls.ListBox)(target));
                return;

            case 20:
                this.menuItemsKidsScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 21:
                this.menuItemsKids = ((System.Windows.Controls.ListBox)(target));
                return;

            case 22:
                this.transparentGrayOverlay = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.dialogBackground = ((System.Windows.Controls.Grid)(target));
                return;

            case 24:
                this.dialogBtnText = ((System.Windows.Controls.Grid)(target));
                return;

            case 25:
                this.dialogBtnAccept = ((System.Windows.Controls.Grid)(target));
                return;

            case 26:
                this.dialogBtnReject = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }