Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.stackPanelMain = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.grdAddItem = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

            case 6:
                this.txtSellPrice = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

            case 7:
                this.txtCostPrice = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

            case 8:
                this.cbUnitType = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.txtBaseUnitCount = ((System.Windows.Controls.TextBox)(target));

            #line 78 "..\..\AddItem.xaml"
                this.txtBaseUnitCount.GotFocus += new System.Windows.RoutedEventHandler(this.txtBaseUnitCount_GotFocus);

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

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

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

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

            case 5:
                this.BarcodeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.TxtBarcode = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

            case 7:
                this.QtyLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.TxtQuantity = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

            case 9:
                this.ItemImage = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.ItemGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 94 "..\..\POSWindow.xaml"
                this.ItemGrid.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.grdItemDetail_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 11:
                this.CustomerItemSummary = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.CustomerSummary = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 13:
                this.Saperator = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 14:
                this.OrderSummary = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 15:
                this.Buttons = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.Customer = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.Payment = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.ReturnBill = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.CPO = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.Suspend = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.Unsuspend = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.ItemSelect = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.stackPanelMain = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.grdPaymentMode = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.txtCash = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

            case 4:
                this.txtDebitCard = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

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

            #line 54 "..\..\PaymentWindow.xaml"
                this.txtDebitCardReceipt.LostFocus += new System.Windows.RoutedEventHandler(this.txtDebitCardReceipt_LostFocus);

            #line default
            #line hidden

            #line 54 "..\..\PaymentWindow.xaml"
                this.txtDebitCardReceipt.GotFocus += new System.Windows.RoutedEventHandler(this.txtDebitCardReceipt_GotFocus);

            #line default
            #line hidden
                return;

            case 6:
                this.txtCreditCard = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

            case 7:
                this.txtCreditCardReceipt = ((System.Windows.Controls.TextBox)(target));

            #line 62 "..\..\PaymentWindow.xaml"
                this.txtCreditCardReceipt.GotFocus += new System.Windows.RoutedEventHandler(this.txtCreditCardReceipt_GotFocus);

            #line default
            #line hidden

            #line 62 "..\..\PaymentWindow.xaml"
                this.txtCreditCardReceipt.LostFocus += new System.Windows.RoutedEventHandler(this.txtCreditCardReceipt_LostFocus);

            #line default
            #line hidden
                return;

            case 8:
                this.txtCoupon = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

            case 9:
                this.txtCouponNo = ((System.Windows.Controls.TextBox)(target));

            #line 70 "..\..\PaymentWindow.xaml"
                this.txtCouponNo.GotFocus += new System.Windows.RoutedEventHandler(this.txtCouponNo_GotFocus);

            #line default
            #line hidden

            #line 70 "..\..\PaymentWindow.xaml"
                this.txtCouponNo.LostFocus += new System.Windows.RoutedEventHandler(this.txtCouponNo_LostFocus);

            #line default
            #line hidden
                return;

            case 10:
                this.txtCheque = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

            case 11:
                this.txtChequeNo = ((System.Windows.Controls.TextBox)(target));

            #line 78 "..\..\PaymentWindow.xaml"
                this.txtChequeNo.GotFocus += new System.Windows.RoutedEventHandler(this.txtChequeNo_GotFocus);

            #line default
            #line hidden

            #line 78 "..\..\PaymentWindow.xaml"
                this.txtChequeNo.LostFocus += new System.Windows.RoutedEventHandler(this.txtChequeNo_LostFocus);

            #line default
            #line hidden
                return;

            case 12:
                this.txtCreditAcocount = ((MerchantService.POS.UserControls.BaseTextBox)(target));
                return;

            case 13:
                this.txtDownPayment = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.lblAdditionalCost = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.txtAdditionalCode = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.txtPaid = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.txtDifference = ((System.Windows.Controls.TextBlock)(target));
                return;

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