コード例 #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ViewHandpay = ((BMC.Presentation.CViewHandpay)(target));
     
     #line 13 "..\..\..\Views\CViewHandpay.xaml"
     this.ViewHandpay.Loaded += new System.Windows.RoutedEventHandler(this.ViewHandpay_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.GHandpay = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.btnManual = ((System.Windows.Controls.Button)(target));
     
     #line 99 "..\..\..\Views\CViewHandpay.xaml"
     this.btnManual.Click += new System.Windows.RoutedEventHandler(this.btnManual_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.lstHandpay = ((System.Windows.Controls.ListView)(target));
     
     #line 100 "..\..\..\Views\CViewHandpay.xaml"
     this.lstHandpay.Loaded += new System.Windows.RoutedEventHandler(this.lstHandpay_Loaded);
     
     #line default
     #line hidden
     
     #line 100 "..\..\..\Views\CViewHandpay.xaml"
     this.lstHandpay.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstHandpay_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnProcess = ((System.Windows.Controls.Button)(target));
     
     #line 116 "..\..\..\Views\CViewHandpay.xaml"
     this.btnProcess.Click += new System.Windows.RoutedEventHandler(this.btnProcess_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnVoid = ((System.Windows.Controls.Button)(target));
     
     #line 117 "..\..\..\Views\CViewHandpay.xaml"
     this.btnVoid.Click += new System.Windows.RoutedEventHandler(this.btnVoid_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnGenerateSlipNo = ((System.Windows.Controls.Button)(target));
     
     #line 118 "..\..\..\Views\CViewHandpay.xaml"
     this.btnGenerateSlipNo.Click += new System.Windows.RoutedEventHandler(this.btnGenerateSlipNo_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.GridManualHandpay = ((System.Windows.Controls.Grid)(target));
     return;
     case 10:
     this.lblManualheader = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.lblSelectedheader = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.lblSelheaderValue = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 13:
     this.ucValueCalcComp = ((BMC.Presentation.ValueCalcComp)(target));
     return;
     case 14:
     this.btnSave = ((System.Windows.Controls.Button)(target));
     
     #line 157 "..\..\..\Views\CViewHandpay.xaml"
     this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.btnCancel = ((System.Windows.Controls.Button)(target));
     
     #line 158 "..\..\..\Views\CViewHandpay.xaml"
     this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.pnlButtons = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 17:
     this.optHandpay = ((System.Windows.Controls.RadioButton)(target));
     
     #line 160 "..\..\..\Views\CViewHandpay.xaml"
     this.optHandpay.Checked += new System.Windows.RoutedEventHandler(this.optHandpay_Checked);
     
     #line default
     #line hidden
     return;
     case 18:
     this.optJackpot = ((System.Windows.Controls.RadioButton)(target));
     
     #line 161 "..\..\..\Views\CViewHandpay.xaml"
     this.optJackpot.Checked += new System.Windows.RoutedEventHandler(this.optJackpot_Checked);
     
     #line default
     #line hidden
     return;
     case 19:
     this.optProgressive = ((System.Windows.Controls.RadioButton)(target));
     
     #line 162 "..\..\..\Views\CViewHandpay.xaml"
     this.optProgressive.Checked += new System.Windows.RoutedEventHandler(this.optProgressive_Checked);
     
     #line default
     #line hidden
     return;
     case 20:
     this.gridCashDispenser = ((System.Windows.Controls.Grid)(target));
     return;
     case 21:
     this.dispenserStatus = ((BMC.Presentation.POS.UserControls.CashDispenserStatus)(target));
     return;
     case 22:
     this.TextBlock_11 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 23:
     this.txtAmount = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
コード例 #2
0
        private void ViewHandPayPageCaller(bool isRefresh)
        {
            LogManager.WriteLog("Inside ViewHandPayPageCaller()", LogManager.enumLogLevel.Info);
            if (cViewHandpay != null)
            {
                if (!isRefresh)
                {
                    this.DisposeViewHandPay();
                }
                else
                {
                    if (ucSlotMachine.Status == SlotMachineStatus.FloatCollection)
                        cViewHandpay.btnManual.Visibility = Visibility.Collapsed;
                    cViewHandpay.Reload(sBarPosName, ucSlotMachine.InstallationNo);
                }
            }

            if (cViewHandpay == null)
            {
                cViewHandpay = new CViewHandpay(sBarPosName, this);
                cViewHandpay.InstallationNumber = ucSlotMachine.InstallationNo;
                if (ucSlotMachine.Status == SlotMachineStatus.FloatCollection)
                    cViewHandpay.btnManual.Visibility = Visibility.Collapsed;
                cViewHandpay.Margin = new Thickness(0);

                cViewHandpay.btnManual.Click += btnManualClicked;
                cViewHandpay.btnCancel.Click += btnCancelClicked;
            }
            pnlContent.Children.Add(cViewHandpay);
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ViewHandpay = ((BMC.Presentation.CViewHandpay)(target));

            #line 13 "..\..\..\Views\CViewHandpay.xaml"
                this.ViewHandpay.Loaded += new System.Windows.RoutedEventHandler(this.ViewHandpay_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.GHandpay = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.btnManual = ((System.Windows.Controls.Button)(target));

            #line 99 "..\..\..\Views\CViewHandpay.xaml"
                this.btnManual.Click += new System.Windows.RoutedEventHandler(this.btnManual_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.lstHandpay = ((System.Windows.Controls.ListView)(target));

            #line 100 "..\..\..\Views\CViewHandpay.xaml"
                this.lstHandpay.Loaded += new System.Windows.RoutedEventHandler(this.lstHandpay_Loaded);

            #line default
            #line hidden

            #line 100 "..\..\..\Views\CViewHandpay.xaml"
                this.lstHandpay.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstHandpay_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.btnProcess = ((System.Windows.Controls.Button)(target));

            #line 116 "..\..\..\Views\CViewHandpay.xaml"
                this.btnProcess.Click += new System.Windows.RoutedEventHandler(this.btnProcess_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnVoid = ((System.Windows.Controls.Button)(target));

            #line 117 "..\..\..\Views\CViewHandpay.xaml"
                this.btnVoid.Click += new System.Windows.RoutedEventHandler(this.btnVoid_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnGenerateSlipNo = ((System.Windows.Controls.Button)(target));

            #line 118 "..\..\..\Views\CViewHandpay.xaml"
                this.btnGenerateSlipNo.Click += new System.Windows.RoutedEventHandler(this.btnGenerateSlipNo_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.GridManualHandpay = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.lblManualheader = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.lblSelectedheader = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.lblSelheaderValue = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.ucValueCalcComp = ((BMC.Presentation.ValueCalcComp)(target));
                return;

            case 14:
                this.btnSave = ((System.Windows.Controls.Button)(target));

            #line 157 "..\..\..\Views\CViewHandpay.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btnCancel = ((System.Windows.Controls.Button)(target));

            #line 158 "..\..\..\Views\CViewHandpay.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.pnlButtons = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 17:
                this.optHandpay = ((System.Windows.Controls.RadioButton)(target));

            #line 160 "..\..\..\Views\CViewHandpay.xaml"
                this.optHandpay.Checked += new System.Windows.RoutedEventHandler(this.optHandpay_Checked);

            #line default
            #line hidden
                return;

            case 18:
                this.optJackpot = ((System.Windows.Controls.RadioButton)(target));

            #line 161 "..\..\..\Views\CViewHandpay.xaml"
                this.optJackpot.Checked += new System.Windows.RoutedEventHandler(this.optJackpot_Checked);

            #line default
            #line hidden
                return;

            case 19:
                this.optProgressive = ((System.Windows.Controls.RadioButton)(target));

            #line 162 "..\..\..\Views\CViewHandpay.xaml"
                this.optProgressive.Checked += new System.Windows.RoutedEventHandler(this.optProgressive_Checked);

            #line default
            #line hidden
                return;

            case 20:
                this.gridCashDispenser = ((System.Windows.Controls.Grid)(target));
                return;

            case 21:
                this.dispenserStatus = ((BMC.Presentation.POS.UserControls.CashDispenserStatus)(target));
                return;

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

            case 23:
                this.txtAmount = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #4
0
 private void DisposeViewHandPay()
 {
     if (!rbHandpay.IsChecked.SafeValue() &&
         cViewHandpay != null)
     {
         cViewHandpay.btnManual.Click -= btnManualClicked;
         cViewHandpay.btnCancel.Click -= btnCancelClicked;
         cViewHandpay = null;
     }
 }