コード例 #1
0
        private void fill(object sender, DataGridViewCellMouseEventArgs e)
        {
            string a  = this.dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
            int    id = int.Parse(a);
            string b  = this.dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
            //  string c = this.dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
            string c = this.dataGridView1.Rows[e.RowIndex].Cells[9].Value.ToString();
            string g = this.dataGridView1.Rows[e.RowIndex].Cells[8].Value.ToString();
            string f = this.dataGridView1.Rows[e.RowIndex].Cells[11].Value.ToString();
            string h = this.dataGridView1.Rows[e.RowIndex].Cells[12].Value.ToString();
            string k = this.dataGridView1.Rows[e.RowIndex].Cells[10].Value.ToString();

            /*  تقرير_بيانات_المريض t = new تقرير_بيانات_المريض(id,b);
             * t.Show();*/
            //MessageBox.Show(id + " " +b+" "+c+" "+g+""+f+""+h+""+k);
            m.setvalues(id, b, c, g, f, h, k);
            m.Show();

            this.Close();
        }
コード例 #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            تسجيل_بيانات__مريض f = new تسجيل_بيانات__مريض();

            f.Show();
        }