125 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			125 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.ComponentModel;
 | |
| using System.Data;
 | |
| using System.Drawing;
 | |
| using System.Linq;
 | |
| using System.Text;
 | |
| using System.Threading.Tasks;
 | |
| using System.Windows.Forms;
 | |
| 
 | |
| namespace Project.Dialog
 | |
| {
 | |
| 	public partial class fDebug : Form
 | |
| 	{
 | |
| 		public fDebug()
 | |
| 		{
 | |
| 			InitializeComponent();
 | |
| 			this.FormClosed += fDebug_FormClosed;
 | |
| 			this.tbBcd.KeyDown += tbBcd_KeyDown;
 | |
| 		}
 | |
| 
 | |
| 		void tbBcd_KeyDown(object sender, KeyEventArgs e)
 | |
| 		{
 | |
| 			if (e.KeyCode == Keys.Enter)
 | |
| 			{
 | |
| 				// manualbcd();
 | |
| 			}
 | |
| 		}
 | |
| 
 | |
| 		void fDebug_FormClosed(object sender, FormClosedEventArgs e)
 | |
| 		{
 | |
| 			this.tbBcd.KeyDown -= tbBcd_KeyDown;
 | |
| 			timer1.Stop();
 | |
| 		}
 | |
| 
 | |
| 		private void fDebug_Load(object sender, EventArgs e)
 | |
| 		{
 | |
| 			timer1.Enabled = true;
 | |
| 		}
 | |
| 
 | |
| 		private void timer1_Tick(object sender, EventArgs e)
 | |
| 		{
 | |
| 
 | |
| 		}
 | |
| 
 | |
| 		private void lb4_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 
 | |
| 		}
 | |
| 
 | |
| 		private void button1_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			//manualbcd();
 | |
| 		}
 | |
| 
 | |
| 		private void button2_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			var reel = new Class.Reel(textBox1.Text);
 | |
| 			PUB.PrinterL.Print(reel, true, AR.SETTING.Data.DrawOutbox);
 | |
| 			PUB.log.Add("Temporary print L:" + textBox1.Text);
 | |
| 		}
 | |
| 
 | |
| 		private void button3_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			var reel = new Class.Reel(textBox2.Text);
 | |
| 			PUB.PrinterR.Print(reel, true, AR.SETTING.Data.DrawOutbox);
 | |
| 			PUB.log.Add("Temporary print R:" + textBox2.Text);
 | |
| 		}
 | |
| 
 | |
| 		private void button4_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			textBox3.Text = "N/A";
 | |
| 		}
 | |
| 
 | |
| 		private void button5_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			textBox4.Text = "N/A";
 | |
| 		}
 | |
| 
 | |
| 		private void button9_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			textBox3.Text = string.Empty;
 | |
| 		}
 | |
| 
 | |
| 		private void button8_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			textBox4.Text = string.Empty;
 | |
| 		}
 | |
| 
 | |
| 		private void button6_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			PUB.PrinterL.TestPrint(false, textBox3.Text, textBox4.Text);
 | |
| 			var zpl = PUB.PrinterL.LastPrintZPL;
 | |
| 			//PUB.PrintSend(true, zpl);
 | |
| 		}
 | |
| 
 | |
| 		private void button7_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			PUB.PrinterR.TestPrint(false, textBox3.Text, textBox4.Text);
 | |
| 			var zpl = PUB.PrinterR.LastPrintZPL;
 | |
| 			//PUB.PrintSend(false, zpl);
 | |
| 		}
 | |
| 
 | |
| 		private void button10_Click(object sender, EventArgs e)
 | |
| 		{
 | |
| 			var amk = new StdLabelPrint.CAmkorSTDBarcode();
 | |
| 			amk.SetBarcode(textBox5.Text);
 | |
| 		}
 | |
| 		//void manualbcd()
 | |
| 		//{
 | |
| 		//    if (tbBcd.Text.isEmpty())
 | |
| 		//    {
 | |
| 		//        tbBcd.Focus();
 | |
| 		//        return;
 | |
| 		//    }
 | |
| 		//    else
 | |
| 		//    {
 | |
| 		//        //Pub.manualbcd.RaiseRecvData(tbBcd.Text + "\n");
 | |
| 		//        tbBcd.Focus();
 | |
| 		//        tbBcd.SelectAll();
 | |
| 		//    }
 | |
| 		//}
 | |
| 	}
 | |
| }
 | 
