public PrinterForm(RFID_Device device, string lotID, PrinterData printInfo)
 {
     this.device    = device;
     this.lotID     = lotID;
     this.printInfo = printInfo;
     InitializeComponent();
 }
        private void ReadConfiguration()
        {
            printInfo              = new PrinterData();
            rfidPrinterSerial      = ConfigurationManager.AppSettings["Rfid_Printer_Serial"];
            printInfo.PrinterIP    = ConfigurationManager.AppSettings["PrinterIP"];
            printInfo.TemplateName = ConfigurationManager.AppSettings["Template"];

            txtPrinterIp.Text     = printInfo.PrinterIP;
            txtPrinterSerial.Text = rfidPrinterSerial;
            txtTemplate.Text      = printInfo.TemplateName;
        }