Beispiel #1
0
        private void label9_Click(object sender, EventArgs e)
        {
            FrmDoctro frm = new FrmDoctro();

            frm.Show();
            this.Hide();
        }
Beispiel #2
0
 void LoadData()
 {
     try
     {
         FrmDoctro frm = new FrmDoctro();
         dt.Clear();
         da = new SqlDataAdapter("select * from Tbl_Pharma where ID_Patient='" + txtLoad.Text + "' ", DAL.sqlcon);
         da.Fill(dt);
         dgv.DataSource = dt;
         gridView1.Columns[0].Visible = false;
         gridView1.Columns[1].Caption = "اسم الدواء";
         gridView1.Columns[2].Caption = "كميه الجرعه";
         gridView1.Columns[3].Caption = "عدد الجرعات";
         gridView1.Columns[4].Caption = "وقت تناول الدواء";
         gridView1.Columns[5].Caption = "مده العلاج";
         gridView1.Columns[6].Visible = false;
         gridView1.Columns[7].Visible = false;
     }
     catch (Exception)
     {
         throw;
     }
 }