void getCARD() { frmRFID rf = new frmRFID(); if (rf.connectCard()) { string cardUID = rf.getcardUID(); if (cardUID != "63000000") { pc.uid = cardUID; id = pc.getID(); lblRFID.Text = id; if (id == "" || id == null) { lblRFID.Text = "No Record"; addPatient ap = new addPatient(); ap.uid = cardUID; loadfrm(ap); } else { frmPatients fp = new frmPatients(); fp.txtSearch1.Text = lblRFID.Text; loadfrm(fp); } } else { lblRFID.Text = ""; } } }
private void tileAdd_Click(object sender, EventArgs e) { focus = "add"; addPatient ap = new addPatient(); loadfrm(ap); ap.Focus(); }
private void button2_Click(object sender, EventArgs e) { addPatient add = new addPatient(); add.TopLevel = false; add.AutoScroll = true; pn1.Controls.Add(add); add.FormBorderStyle = FormBorderStyle.None; add.Show(); }