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();
        }
        private void bunifuThinButton28_Click(object sender, EventArgs e)
        {
            //details
            try
            {
                Form_Print print           = new Form_Print();
                ClassTreatments_Patients p = new ClassTreatments_Patients();
                print.dataGridView1_Print.DataSource = p.readTreatments_Patients(int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()));

                print.Lb_Print_NamePatient.Text = dataGridView1.CurrentRow.Cells[1].Value.ToString();
                print.bunifuCustomLabel7.Text   = dataGridView1.CurrentRow.Cells[2].Value.ToString();
                print.bunifuCustomLabel9.Text   = dataGridView1.CurrentRow.Cells[3].Value.ToString();
                print.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        private void bunifuThinButton24_Click(object sender, EventArgs e)
        {
            Form_Print p = new Form_Print();

            p.Show();
        }