public frmEmailDetails(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     CurrentUser = currentUser;
 }
Example #2
0
 public frmEquipment()
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myEquipment = new Equipment();
     state       = "Empty";
 }
Example #3
0
 public frmStaff(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myStaff     = new Staff();
     CurrentUser = currentUser;
     state       = "Empty";
 }
 public frmInstructor(User currentUser)
 {
     InitializeComponent();
     myCon        = new mySQLcon();
     con          = myCon.con;
     myInstructor = new Instructor();
     CurrentUser  = currentUser;
     state        = "Empty";
 }
Example #5
0
 public frmUser(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     CurrentUser = currentUser;
     myUser      = new User();
     state       = "Empty";
 }
Example #6
0
 public frmCourse(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myCourse    = new Course();
     CurrentUser = currentUser;
     state       = "Empty";
 }
Example #7
0
 public frmEquipment(string id, User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myEquipment = new Equipment();
     //LoadRecord(id);
     state = "View";
 }
Example #8
0
 public frmEnrolment(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myEnrolment = new Enrolment();
     CurrentUser = currentUser;
     state       = "Empty";
 }
Example #9
0
 public frmStaff(string id, User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myStaff     = new Staff();
     CurrentUser = currentUser;
     //LoadRecord(id);
     state = "View";
 }
Example #10
0
 public frmInstructor(string id, User currentUser)
 {
     InitializeComponent();
     myCon        = new mySQLcon();
     con          = myCon.con;
     myInstructor = new Instructor();
     CurrentUser  = currentUser;
     //LoadRecord(id);
     state = "View";
 }
Example #11
0
 public frmUser(string id, User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     CurrentUser = currentUser;
     myUser      = new User();
     LoadRecord(id);
     state = "View";
 }
Example #12
0
 public frmCourse(string id, User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myCourse    = new Course();
     CurrentUser = currentUser;
     LoadRecord(id);
     state = "View";
 }
Example #13
0
        private void frmSearch_Load(object sender, EventArgs e)
        {
            myCon = new mySQLcon();
            con   = myCon.con;

            if (type == "Booking")
            {
                tabControl.SelectTab("tabBooking");
                HideFieldsBooking();
                PopulateCombosBooking();
                rbtnStudent.Select();
            }
            //else if (type == "User")
            //{
            //    tabControl.SelectTab("tabUser");
            //}
        }
Example #14
0
        private void frmMenu_Load(object sender, EventArgs e)
        {
            myCon = new mySQLcon();
            con   = myCon.con;

            comboBoxType.Items.Add("Booking");
            comboBoxType.Items.Add("Course");
            comboBoxType.Items.Add("Enrolment");
            comboBoxType.Items.Add("Equipment");
            comboBoxType.Items.Add("Instructor");
            comboBoxType.Items.Add("Staff");
            comboBoxType.Items.Add("Student");
            if (CurrentUser.IsAdmin)
            {
                comboBoxType.Items.Add("User");
                comboBoxType.Items.Add("EmailAccount");
            }
            rbtnAdd.Select();
            comboBoxType.SelectedIndex = 0;
            frmBooking frm = new frmBooking(CurrentUser);

            frm.Show();
            ShowBookings();
        }
Example #15
0
 private void Login_Load(object sender, EventArgs e)
 {
     myCon = new mySQLcon();
     con   = myCon.con;
 }