Interaction logic for TicketCouponControl.xaml
Наследование: UserControl
Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

            case 3:
                this.labelTopRight = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.listBoxTicketItems = ((PosControls.DragScrollListBox)(target));

            #line 21 "..\..\..\TicketCashoutControl.xaml"
                this.listBoxTicketItems.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listBoxTicketItems_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.paymentControl = ((TemPOS.TicketCashoutPaymentControl)(target));
                return;

            case 6:
                this.couponEntryControl = ((TemPOS.TicketCouponControl)(target));
                return;

            case 7:
                this.discountControl = ((TemPOS.TicketDiscountControl)(target));
                return;

            case 8:
                this.buttonCoupon = ((PosControls.TextBlockButton)(target));

            #line 26 "..\..\..\TicketCashoutControl.xaml"
                this.buttonCoupon.Click += new System.Windows.RoutedEventHandler(this.buttonCoupon_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.buttonDiscount = ((PosControls.TextBlockButton)(target));

            #line 27 "..\..\..\TicketCashoutControl.xaml"
                this.buttonDiscount.Click += new System.Windows.RoutedEventHandler(this.buttonDiscount_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.buttonTaxExemption = ((PosControls.TextBlockButton)(target));

            #line 28 "..\..\..\TicketCashoutControl.xaml"
                this.buttonTaxExemption.Click += new System.Windows.RoutedEventHandler(this.buttonTaxExemption_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.buttonRefund = ((PosControls.TextBlockButton)(target));

            #line 31 "..\..\..\TicketCashoutControl.xaml"
                this.buttonRefund.Click += new System.Windows.RoutedEventHandler(this.buttonRefund_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.buttonPrintReceipt = ((PosControls.TextBlockButton)(target));

            #line 32 "..\..\..\TicketCashoutControl.xaml"
                this.buttonPrintReceipt.Click += new System.Windows.RoutedEventHandler(this.buttonPrintReceipt_Click);

            #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.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

            case 3:

            #line 27 "..\..\..\OrderEntryControl.xaml"
                ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Grid_Loaded);

            #line default
            #line hidden
                return;

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

            case 5:
                this.couponEntryControl = ((TemPOS.TicketCouponControl)(target));
                return;

            case 6:
                this.discountControl = ((TemPOS.TicketDiscountControl)(target));
                return;

            case 7:
                this.ticketDetailsControl = ((TemPOS.OrderEntryTicketDetailsControl)(target));
                return;

            case 8:
                this.ticketSelectionControl = ((TemPOS.OrderEntryTicketSelectionControl)(target));
                return;

            case 9:
                this.groupBoxNonOrderCommands = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 10:
                this.nonOrderCommandControl = ((TemPOS.OrderEntryNonOrderCommandsControl)(target));
                return;

            case 11:
                this.groupBoxOrderCommands = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 12:
                this.orderCommandControl = ((TemPOS.OrderEntryOrderCommandsControl)(target));
                return;

            case 13:
                this.groupBoxOptions = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 14:
                this.orderEntryItemOptions = ((TemPOS.OrderEntryStandardItemOptionsControl)(target));
                return;

            case 15:
                this.orderEntryPizzaItemOptions = ((TemPOS.OrderEntryPizzaItemControl)(target));
                return;

            case 16:
                this.groupBoxItems = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 17:
                this.orderEntryItemSelection = ((TemPOS.OrderEntryItemSelectionControl)(target));
                return;

            case 18:
                this.groupBoxCategories = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 19:
                this.buttonTouchInputCategory = ((TemPOS.OrderEntryCategorySelectionControl)(target));
                return;

            case 20:
                this.receiptTape1 = ((TemPOS.OrderEntryReceiptTape)(target));
                return;

            case 21:
                this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 22:
                this.textBlockOrderAmount = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.textBlockTableName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.textBlockCustomerName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.textBlockUserName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.textBlockWeather = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.textBlockDate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.textBlockTime = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }