void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((BMC.Presentation.CPrintTicket)(target));
                return;

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

            case 3:
                this.ucValueCalc = ((BMC.Presentation.ValueCalcComp)(target));
                return;

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

            #line 5 "..\..\..\Views\CPrintTicket.xaml"
                this.btnIssue.Click += new System.Windows.RoutedEventHandler(this.btnIssue_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.gridTicScanDet = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 7:
                this.txtPrinterName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.lblSerialNumber = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.txtSerialNumber = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
 private void chkAttendantPays_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         PrintTicket            = null;
         RedeemTicket           = null;
         Attendantpays          = new CAttendantPays();
         pnlTicketContent.Child = Attendantpays;
         Attendantpays.Margin   = new Thickness(0);
     }
     catch (Exception ex)
     {
         ExceptionManager.Publish(ex);
     }
     finally
     {
         chkRedeem.IsEnabled = true;
     }
 }
Exemple #3
0
 private void chkPrint_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         chkPrint.IsEnabled     = false;
         RedeemTicket           = null;
         PrintTicket            = new CPrintTicket();
         pnlTicketContent.Child = PrintTicket;
         PrintTicket.Margin     = new Thickness(0);
     }
     catch (Exception ex)
     {
         ExceptionManager.Publish(ex);
     }
     finally
     {
         chkPrint.IsEnabled = true;
     }
 }
        private void chkVoid_Checked(object sender, RoutedEventArgs e)
        {

            try
            {
                chkVoid.IsEnabled = false;
                PrintTicket = null;
                RedeemTicket = null;
                VoidTicket = new CVoidTicket();
                pnlTicketContent.Child = VoidTicket;
                VoidTicket.Margin = new Thickness(0);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
            finally
            {
                chkVoid.IsEnabled = true;
            }
        }
 private void chkManualAttendantPays_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         PrintTicket = null;
         RedeemTicket = null;
         Attendantpays = null;
         ManualAttendantpays = new CManualAttendantPays();
         pnlTicketContent.Child = ManualAttendantpays;
         ManualAttendantpays.Margin = new Thickness(0);
     }
     catch (Exception ex)
     {
         ExceptionManager.Publish(ex);
     }
     finally
     {
         chkRedeem.IsEnabled = true;
     }
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((BMC.Presentation.CPrintTicket)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.ucValueCalc = ((BMC.Presentation.ValueCalcComp)(target));
     return;
     case 4:
     this.btnIssue = ((System.Windows.Controls.Button)(target));
     
     #line 5 "..\..\..\Views\CPrintTicket.xaml"
     this.btnIssue.Click += new System.Windows.RoutedEventHandler(this.btnIssue_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.gridTicScanDet = ((System.Windows.Controls.Grid)(target));
     return;
     case 6:
     this.GrdMachine = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     this.txtPrinterName = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 8:
     this.lblSerialNumber = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.txtSerialNumber = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }