public void ShowTagReader() { try { InfoPos.Panels.frmRentTagReader frm = new InfoPos.Panels.frmRentTagReader(_core); DialogResult res = frm.ShowDialog(); if (res == DialogResult.OK) { switch (tabMain.SelectedTabPageIndex) { case 0: // Sales search page //ucCustSearch1.Find(null, frm.SerialNo, frm.CustNo, null, null, null, null); break; case 1: //ucRentTag1.Find(null, frm.SerialNo, frm.CustNo); // ucRentTag1.OnEventChoose(); break; } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void btnTag_Click_removed(object sender, EventArgs e) { try { InfoPos.Panels.frmRentTagReader frm = new InfoPos.Panels.frmRentTagReader(_core); DialogResult res = frm.ShowDialog(); if (res == DialogResult.OK) { if (!string.IsNullOrEmpty(frm.CustNo) && !string.IsNullOrEmpty(frm.SerialNo)) { this.txtCustNo.EditValue = frm.CustNo; this.txtTagNo.EditValue = frm.SerialNo; DataRefresh(1); } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }