void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.UserControl = ((BMC.Presentation.CVoidTicket)(target)); #line 2 "..\..\..\Views\CVoidTicket.xaml" this.UserControl.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.ucValueCalc = ((BMC.Presentation.CTicketEntry)(target)); return; case 4: this.gridTicScanDet = ((System.Windows.Controls.Grid)(target)); return; case 5: this.txtNotes = ((System.Windows.Controls.TextBox)(target)); #line 39 "..\..\..\Views\CVoidTicket.xaml" this.txtNotes.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.txt_PreviewMouseUp); #line default #line hidden return; case 6: this.lblVoidAmount = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.lblVoidAmountValue = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 9: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 10: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 11: this.btnVerify = ((System.Windows.Controls.Button)(target)); #line 79 "..\..\..\Views\CVoidTicket.xaml" this.btnVerify.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; } this._contentLoaded = 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; } }