Ejemplo n.º 1
0
 public AddSubjectForm(Controller.UserAccount ua)
 {
     InitializeComponent();
     subjectName = string.Empty;
     subject     = new Controller.Subject();
     userAccount = ua;
 }
Ejemplo n.º 2
0
 public AddTeacherForm(Controller.UserAccount ua)
 {
     InitializeComponent();
     teacherName = string.Empty;
     teacher     = new Controller.Teacher();
     userAccount = ua;
 }
 public AddSectionForm(Controller.UserAccount ua, int secId)
 {
     InitializeComponent();
     sectionName = string.Empty;
     section     = new Controller.Section
     {
         sectionID = secId
     };
 }
        String[] name;                             //For names passing in the query

        public AddSectionForm(Controller.UserAccount ua)
        {
            InitializeComponent();
            addSectionForm = this;
            sectionName    = string.Empty;
            section        = new Controller.Section();
            userAccount    = ua;
            MessageBox.Show("Called the User identification constructor.");
        }
Ejemplo n.º 5
0
 public AddUserAccount(int userACID)
 {
     InitializeComponent();
     userName    = string.Empty;
     userAccount = new Controller.UserAccount
     {
         ua_id = userACID
     };
 }
 public AddStudentForm(Controller.UserAccount ua, int stdID)
 {
     InitializeComponent();
     student = new Controller.Student
     {
         studentID = stdID
     };
     userAccount = ua;
 }
Ejemplo n.º 7
0
 public AddTeacherForm(Controller.UserAccount ua, int teacher_ID)
 {
     InitializeComponent();
     teacherName = string.Empty;
     teacher     = new Controller.Teacher
     {
         teacherID = teacher_ID
     };
     userAccount = ua;
 }
Ejemplo n.º 8
0
 private void LoginButton_Click(object sender, EventArgs e)
 {
     if (!LoginValidation())
     {
         return;
     }
     Controller.UserAccount userAccount = new Controller.UserAccount();
     if (userAccount.UserLoginAuthentication(UsernameTextBox.Text, PasswordTextBox.Text))
     {
         UsernameTextBox.Clear();
         PasswordTextBox.Clear();
         UsernameTextBox.Focus();
         HomeForm homeForm = new HomeForm(userAccount);
         this.Hide();
         homeForm.ShowDialog();
     }
 }
 public ViewStudentForm(Controller.UserAccount ua)
 {
     InitializeComponent();
     student     = new Controller.Student();
     userAccount = ua;
 }
Ejemplo n.º 10
0
 public AddUserAccount()
 {
     InitializeComponent();
     userName    = string.Empty;
     userAccount = new Controller.UserAccount();
 }
Ejemplo n.º 11
0
 public HomeForm(Controller.UserAccount ua)
 {
     InitializeComponent();
     userAccount = ua;
 }