예제 #1
0
 public Candidate()
 {
     this.p = new Position();
     this.s = new Student();
     this.pty = new Party();
     this.img = new CandidateImage();
     this.can_id = pos_id = pty_id = img_id = 0d;
     this.s_id = "";
 }
예제 #2
0
        private void executeLogin()
        {
            Student s = new Student();
            s.s_id = txtUsn.Text;
            s.password = txtPassword.Text;
            if (s.isValid())
            {
                s.loadStudent(s.s_id);
                GLOBAL_VARS.activeStud = s;

                //this.txtUsn.Text = "";
                //this.txtPassword.Text = "";
                //this.txtUsn.Focus();

                frmBallot fb = new frmBallot();
                fb.ShowDialog();
            }
            else {
                MessageBox.Show("Invalid USN/PASSWORD");
            }
        }