Пример #1
0
        private void Home_Load(object sender, EventArgs e)
        {
            /*قسم النساء */
            groupH frm = new groupH();

            frm.TopLevel        = false;
            frm.Visible         = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.Dock            = DockStyle.Fill;
            tabcontrol1.TabPages[2].Controls.Add(frm);

            /* قسم الحوامل */
            OBSTATRIC_HISTORY obs = new OBSTATRIC_HISTORY();

            obs.TopLevel        = false;
            obs.Visible         = true;
            obs.FormBorderStyle = FormBorderStyle.None;
            obs.Dock            = DockStyle.Fill;
            tabcontrol1.TabPages[3].Controls.Add(obs);

            /*قسم الأستقبال */
            //أوامر الطبيب
            frm_doctor_orders doctors = new frm_doctor_orders();

            doctors.TopLevel        = false;
            doctors.Visible         = true;
            doctors.FormBorderStyle = FormBorderStyle.None;
            doctors.Dock            = DockStyle.Fill;
            tabControl2.TabPages[0].Controls.Add(doctors);
            //تنفيذ علاج

            frm_treatment tream = new frm_treatment();

            tream.TopLevel        = false;
            tream.Visible         = true;
            tream.FormBorderStyle = FormBorderStyle.None;
            tream.Dock            = DockStyle.Fill;
            tabControl2.TabPages[1].Controls.Add(tream);

            //إذن دخول مريضة
            أذن_دخول_مريضة frmf = new أذن_دخول_مريضة();

            frmf.TopLevel        = false;
            frmf.Visible         = true;
            frmf.FormBorderStyle = FormBorderStyle.None;
            frmf.Dock            = DockStyle.Fill;
            tabcontrol1.TabPages[0].Controls.Add(frmf);
        }
Пример #2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                Code = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();

                أذن_دخول_مريضة f = new أذن_دخول_مريضة();

                f.Focus();

                this.DialogResult = DialogResult.OK;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + " dfff");
            }
        }
Пример #3
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         Code = int.Parse(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
         //name = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
         أذن_دخول_مريضة f = new أذن_دخول_مريضة();
         // ادارة عرباتff = new تسجيل_بيانات__مريض();
         //تقرير1 f = new تقرير1();
         f.Focus();
         //  ff.Focus();
         this.DialogResult = DialogResult.OK;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " dfff");
     }
 }