private void AddToGrid()
        {
            try
            {
                errorName.Clear();
                errorGrade.Clear();
                this.Hide();
                DataRow drow = tblGlobleData.NewRow();
                drow["Student Id"] = this.txtStudentId.Text;
                drow["Name"] = this.txtStudentName.Text.ToUpper();
                drow["Date Of Birth"] = this.cmbDateOfBirth.Text;
                drow["GradePointAvg"] = this.txtGradePointAvg.Text;

                if (this.chkStatus.Checked)
                {
                    drow["Active"] = true;
                }
                else
                {
                    drow["Active"] = false;
                }

                tblGlobleData.Rows.Add(drow);
                frmStudent_Details studentDtl = new frmStudent_Details(tblGlobleData, maxId);
                studentDtl.Show();
            }
            catch
            {

            }
        }
Exemplo n.º 2
0
        private void toolNewRegister_Click(object sender, EventArgs e)
        {
            frmStudent_Details fStudent = new frmStudent_Details();

            fStudent.MdiParent = this;
            fStudent.Show();
        }
Exemplo n.º 3
0
        private void mnuItmNewRegistration_Click(object sender, EventArgs e)
        {
            frmStudent_Details fStudent = new frmStudent_Details();

            fStudent.MdiParent = this;
            fStudent.Show();
        }
Exemplo n.º 4
0
        private void AddToGrid()
        {
            try
            {
                errorName.Clear();
                errorGrade.Clear();
                this.Hide();
                DataRow drow = tblGlobleData.NewRow();
                drow["Student Id"]    = this.txtStudentId.Text;
                drow["Name"]          = this.txtStudentName.Text.ToUpper();
                drow["Date Of Birth"] = this.cmbDateOfBirth.Text;
                drow["GradePointAvg"] = this.txtGradePointAvg.Text;

                if (this.chkStatus.Checked)
                {
                    drow["Active"] = true;
                }
                else
                {
                    drow["Active"] = false;
                }

                tblGlobleData.Rows.Add(drow);
                frmStudent_Details studentDtl = new frmStudent_Details(tblGlobleData, maxId);
                studentDtl.Show();
            }
            catch
            {
            }
        }
Exemplo n.º 5
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmStudent_Details studentDtl = new frmStudent_Details(tblGlobleData, (maxId - 1));

            studentDtl.Show();
        }
 private void toolNewRegister_Click(object sender, EventArgs e)
 {
     frmStudent_Details fStudent = new frmStudent_Details();
     fStudent.MdiParent = this;
     fStudent.Show();
 }
 private void mnuItmNewRegistration_Click(object sender, EventArgs e)
 {
     frmStudent_Details fStudent = new frmStudent_Details();
     fStudent.MdiParent = this;
     fStudent.Show();
 }
 private void btnCancel_Click(object sender, EventArgs e)
 {
     this.Hide();
     frmStudent_Details studentDtl = new frmStudent_Details(tblGlobleData, (maxId - 1));
     studentDtl.Show();
 }