Esempio n. 1
0
 private void btnPrint_Click(object sender, RoutedEventArgs e)
 {
     if (string.IsNullOrEmpty(txtQCDQEID.Text) || string.IsNullOrEmpty(cbLocation.Text))
     {
         MessageBox.Show("Please enter a Location and a Save ID before attempting to print the label.", "Missing Data", MessageBoxButton.OK, MessageBoxImage.Information);
         txtQCDQEID.Focus();
     }
     else
     {
         csPrintQCDQELabel printLabel = new csPrintQCDQELabel(cbLocation.Text.ToString(), System.Environment.UserName, DateTime.Now.ToString("MM/dd/yyyy hh:mm tt"), txtQCDQEID.Text.ToString());
         printLabel.PrintLabel();
     }
 }
Esempio n. 2
0
 private void btnTestPrint_Click(object sender, RoutedEventArgs e)
 {
     printLabel = new csPrintQCDQELabel("Sent To QC/DQE", System.Environment.UserName, DateTime.Now.ToString("MM/dd/yyyy hh:mm tt"), "23091616030900");
     printLabel.PrintLabel();
 }