private void bunifuThinButton21_Click(object sender, EventArgs e) { //if (P_Trait_Info.Visible) //{ // P_Patient.BringToFront(); //} //else { P_Patient.SendToBack(); Form_Home h = new Form_Home(); h.Show(); this.Close(); } }
private void bunifuThinButton24_Click(object sender, EventArgs e) { ClassPatients p = new ClassPatients(); var dt = p.readPatient(); int lastRow = dt.Rows.Count; int idP = int.Parse(dt.Rows[lastRow - 1][0].ToString()); string name = dt.Rows[lastRow - 1][1].ToString(); int age = int.Parse(dt.Rows[lastRow - 1][2].ToString()); string patientType = dt.Rows[lastRow - 1][3].ToString(); Form_Print print = new Form_Print(); print.Lb_Print_NamePatient.Text = name; print.bunifuCustomLabel9.Text = patientType; print.bunifuCustomLabel7.Text = age.ToString(); print.Show(); P_Patient.BringToFront(); }