예제 #1
0
        private void fill(object sender, DataGridViewCellMouseEventArgs e)
        {
            MessageBox.Show("قم بتعديل البيانات");
            string a = this.dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); //p_id

            id = int.Parse(a);
            string b  = this.dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();  //p_name
            string c  = this.dataGridView1.Rows[e.RowIndex].Cells[14].Value.ToString(); //phone
            string d  = this.dataGridView1.Rows[e.RowIndex].Cells[17].Value.ToString(); //city
            string f  = this.dataGridView1.Rows[e.RowIndex].Cells[16].Value.ToString(); //country
            string g  = this.dataGridView1.Rows[e.RowIndex].Cells[9].Value.ToString();  //matrial _sstatus
            string yy = this.dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();  //identity_type
            //string z = this.dataGridView1.Rows[e.RowIndex].Cells[11].Value.ToString();//cat_cod
            //int   cat_code = int.Parse(z);

            string m = this.dataGridView1.Rows[e.RowIndex].Cells[5].Value.ToString(); //date_ofbirth



            // string c = this.dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
            // h = int.Parse(c);

            // تعديل_بيانات_مريض  l = new تعديل_بيانات_مريض();

            List <string> bd = new List <string>();

            bd.Add(id.ToString());
            bd.Add(b.ToString());
            bd.Add(c.ToString());
            bd.Add(d.ToString());
            bd.Add(f.ToString());
            bd.Add(g.ToString());
            bd.Add(yy.ToString());
            //bd.Add(cat_code.ToString());
            bd.Add(m.ToString());


            //, b, c, d, f, g, y, cat_code,m};

            تعديل_بيانات_مريض.setvalue(bd);
            y.Show();
            // l.Show();
        }
예제 #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            تعديل_بيانات_مريض f = new تعديل_بيانات_مريض();

            f.Show();
        }
예제 #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            تعديل_بيانات_مريض update = new تعديل_بيانات_مريض();

            update.Show();
        }