Beispiel #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            EmployeeFolderAdd editDoc = new EmployeeFolderAdd(true, Convert.ToInt32(DgvEmpFolder.CurrentRow.Cells[0].Value.ToString()));

            editDoc.comboDocTit.Text = this.DgvEmpFolder.CurrentRow.Cells[1].Value.ToString();
            editDoc.txtDocDesc.Text  = this.DgvEmpFolder.CurrentRow.Cells[2].Value.ToString();
            editDoc.DtpDoc.Text      = this.DgvEmpFolder.CurrentRow.Cells[3].Value.ToString();
            editDoc.txtDocIssue.Text = this.DgvEmpFolder.CurrentRow.Cells[4].Value.ToString();
            editDoc.btnAddDoc.Text   = "تعديل";
            editDoc.Text             = "تعديل وثيقة";
            byte[]       image = (byte[])classDoc.GET_DOC_IMAGE(DgvEmpFolder.CurrentRow.Cells[0].Value.ToString()).Rows[0][0];
            MemoryStream ms    = new MemoryStream(image);

            editDoc.pictureBoxDoc.Image = Image.FromStream(ms);
            editDoc.ShowDialog();
        }
Beispiel #2
0
        private void btnAddDoc_Click(object sender, EventArgs e)
        {
            EmployeeFolderAdd employeeFolderAdd = new EmployeeFolderAdd(Convert.ToInt32(ID));

            employeeFolderAdd.ShowDialog();
        }