Ejemplo n.º 1
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;
     }
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.AttendantPay = ((BMC.Presentation.CAttendantPays)(target));
     
     #line 13 "..\..\..\Views\CAttendantPays.xaml"
     this.AttendantPay.Loaded += new System.Windows.RoutedEventHandler(this.AttendantPay_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.dgHandpay = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 53 "..\..\..\Views\CAttendantPays.xaml"
     this.dgHandpay.Loaded += new System.Windows.RoutedEventHandler(this.dgHandpay_Loaded);
     
     #line default
     #line hidden
     
     #line 53 "..\..\..\Views\CAttendantPays.xaml"
     this.dgHandpay.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgHandpay_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnProcess = ((System.Windows.Controls.Button)(target));
     
     #line 68 "..\..\..\Views\CAttendantPays.xaml"
     this.btnProcess.Click += new System.Windows.RoutedEventHandler(this.btnProcess_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnVoid = ((System.Windows.Controls.Button)(target));
     
     #line 69 "..\..\..\Views\CAttendantPays.xaml"
     this.btnVoid.Click += new System.Windows.RoutedEventHandler(this.btnVoid_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnGenerateSlipNo = ((System.Windows.Controls.Button)(target));
     
     #line 70 "..\..\..\Views\CAttendantPays.xaml"
     this.btnGenerateSlipNo.Click += new System.Windows.RoutedEventHandler(this.btnGenerateSlipNo_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.TextBlock_11 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.txtAmount = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AttendantPay = ((BMC.Presentation.CAttendantPays)(target));

            #line 13 "..\..\..\Views\CAttendantPays.xaml"
                this.AttendantPay.Loaded += new System.Windows.RoutedEventHandler(this.AttendantPay_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.dgHandpay = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 53 "..\..\..\Views\CAttendantPays.xaml"
                this.dgHandpay.Loaded += new System.Windows.RoutedEventHandler(this.dgHandpay_Loaded);

            #line default
            #line hidden

            #line 53 "..\..\..\Views\CAttendantPays.xaml"
                this.dgHandpay.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgHandpay_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            case 9:
                this.txtAmount = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 4
0
 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;
     }
 }