コード例 #1
0
 private void chkPrint_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         chkPrint.IsEnabled = false;
         //if(!CPrintPromotionalTickets.IsPrinting)
         //     prmPrint = new PromoPrint(objPrintTickets);
         prmPrint = new PromoPrint(this);
         pnlPromoVouchContent.Child = prmPrint;
         prmPrint.Margin            = new Thickness(0);
     }
     catch (Exception ex)
     {
         ExceptionManager.Publish(ex);
     }
     finally
     {
         chkPrint.IsEnabled = true;
     }
 }
コード例 #2
0
 private void chkPrint_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         chkPrint.IsEnabled = false;
         //if(!CPrintPromotionalTickets.IsPrinting)
         //     prmPrint = new PromoPrint(objPrintTickets);
         prmPrint = new PromoPrint(this);
         pnlPromoVouchContent.Child = prmPrint;
         prmPrint.Margin = new Thickness(0);
     }
     catch (Exception ex)
     {
         ExceptionManager.Publish(ex);
     }
     finally
     {
         chkPrint.IsEnabled = true;
     }
 }