private void btnRegistration_Click(object sender, EventArgs e)
        {
            StudentInformationClass.SetFullName  = FullName(txtLastName.Text, txtFirstName.Text, txtMiddleInitial.Text);
            StudentInformationClass.SetStudentNo = (int)StudentNumber(txtStudentNo.Text);
            StudentInformationClass.SetProgram   = stPrograms.Text;
            StudentInformationClass.SetGender    = stGender.Text;
            StudentInformationClass.SetContactNo = (int)ContactNo(txtContactNo.Text);
            StudentInformationClass.SetAge       = Age(txtAge.Text);
            frmConfirmation frm = new frmConfirmation();

            frm.ShowDialog();
        }
Beispiel #2
0
        private void btnRegistration_Click(object sender, EventArgs e)
        {
            StudentInformationClass.SetFullName  = FullName(txtLastName.Text, txtFirstName.Text, txtMiddleInitial.Text);
            StudentInformationClass.SetStudentNo = (int)StudentNumber(txtStudentNo.Text);
            StudentInformationClass.SetProgram   = cbPrograms.Text;
            StudentInformationClass.SetGender    = cbGender.Text;
            StudentInformationClass.SetContactNo = (int)ContactNo(txtContactNo.Text);
            StudentInformationClass.SetBirthday  = datePickerBirthday.Value.ToString("yyyy-MM-dd");
            StudentInformationClass.SetAge       = Age(txtAge.Text);

            frmConfirmation frm = new frmConfirmation();

            frm.ShowDialog();
        }