Exemple #1
0
        public frmStudentEducationEdit(int id)
        {
            InitializeComponent();

            DAL.StudentEducation studentEducation = new DAL.StudentEducation();
            if (studentEducation.SelectById())
            {
                txtStudentId.Text        = studentEducation.StudentId.ToString();
                txtEducationId.Text      = studentEducation.EducationId.ToString();
                txtEducationBoardId.Text = studentEducation.EducationBoardId.ToString();
                txtRegistration.Text     = studentEducation.Registration;
                txtResult.Text           = studentEducation.Result;
                txtRoll.Text             = studentEducation.Roll;
                txtRoll.Text             = studentEducation.Remarks;
            }
        }
Exemple #2
0
        private void dgbStudentEducation_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            // MessageBox.Show(e.RowIndex.ToString() + ", " + e.ColumnIndex.ToString());

            if (e.ColumnIndex == 10)
            {
                DAL.StudentEducation se = new DAL.StudentEducation();
                se.StudentId   = Convert.ToInt32(dgbStudentEducation.Rows[e.RowIndex].Cells["colStudentId"].Value);
                se.EducationId = Convert.ToInt32(dgbStudentEducation.Rows[e.RowIndex].Cells["colEducationId"].Value);;
                if (se.SelectById())
                {
                    FolderBrowserDialog fbd = new FolderBrowserDialog();
                    fbd.ShowDialog();

                    Hypertag.Advising.filImage.FileFromByte(se.Document, fbd.SelectedPath + "/" + se.fileName);
                    MessageBox.Show("Downloaded");
                }
                else
                {
                    MessageBox.Show("Vul Shobi Vul");
                }
            }
        }