コード例 #1
0
        //نهاية قسم الازرة

        //بداية العمليات
        private void ShowEmpFolder()
        {
            EmployeeFolder folder = new EmployeeFolder(dataGridViewEmp.CurrentRow.Cells[0].Value.ToString());

            byte[]       image = (byte[])classEmployee.GET_EMP_IMAGE(dataGridViewEmp.CurrentRow.Cells[0].Value.ToString()).Rows[0][0];
            MemoryStream ms    = new MemoryStream(image);

            folder.pictureBoxEmp.Image = Image.FromStream(ms);
            folder.txtJopTit.Text      = dataGridViewEmp.CurrentRow.Cells[0].Value.ToString();
            folder.txtName.Text        = dataGridViewEmp.CurrentRow.Cells[1].Value.ToString();
            folder.txtDep.Text         = dataGridViewEmp.CurrentRow.Cells[5].Value.ToString();
            folder.txtJopTit.Text      = dataGridViewEmp.CurrentRow.Cells[3].Value.ToString();
            folder.ShowDialog();
        }
コード例 #2
0
 static void EmployeeFolder_FormClosed(object sender, FormClosedEventArgs e)
 {
     employeeFolder = null;
 }