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 StdLabelPrint.Reel(textBox1.Text); Pub.PrinterL.Print(reel,true, Pub.setting.DrawOutbox,Pub.setting.STDLabelFormat7); Pub.log.Add("임시프린트L:"+ textBox1.Text); } private void button3_Click(object sender, EventArgs e) { var reel = new StdLabelPrint.Reel(textBox2.Text); Pub.PrinterR.Print(reel,true, Pub.setting.DrawOutbox, Pub.setting.STDLabelFormat7); Pub.log.Add("임시프린트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, Pub.setting.STDLabelFormat7); } private void button7_Click(object sender, EventArgs e) { Pub.PrinterR.TestPrint(false, textBox3.Text, textBox4.Text, Pub.setting.STDLabelFormat7); } //void manualbcd() //{ // if (tbBcd.Text.isEmpty()) // { // tbBcd.Focus(); // return; // } // else // { // //Pub.manualbcd.RaiseRecvData(tbBcd.Text + "\n"); // tbBcd.Focus(); // tbBcd.SelectAll(); // } //} } }