Ejemplo n.º 1
0
 public frmEmailDetails(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     CurrentUser = currentUser;
 }
Ejemplo n.º 2
0
 public frmEquipment()
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myEquipment = new Equipment();
     state       = "Empty";
 }
Ejemplo n.º 3
0
 public frmStaff(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myStaff     = new Staff();
     CurrentUser = currentUser;
     state       = "Empty";
 }
Ejemplo n.º 4
0
 public frmInstructor(User currentUser)
 {
     InitializeComponent();
     myCon        = new mySQLcon();
     con          = myCon.con;
     myInstructor = new Instructor();
     CurrentUser  = currentUser;
     state        = "Empty";
 }
Ejemplo n.º 5
0
 public frmUser(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     CurrentUser = currentUser;
     myUser      = new User();
     state       = "Empty";
 }
Ejemplo n.º 6
0
 public frmCourse(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myCourse    = new Course();
     CurrentUser = currentUser;
     state       = "Empty";
 }
Ejemplo n.º 7
0
 public frmEquipment(string id, User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myEquipment = new Equipment();
     //LoadRecord(id);
     state = "View";
 }
Ejemplo n.º 8
0
 public frmEnrolment(User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myEnrolment = new Enrolment();
     CurrentUser = currentUser;
     state       = "Empty";
 }
Ejemplo n.º 9
0
 public frmStaff(string id, User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myStaff     = new Staff();
     CurrentUser = currentUser;
     //LoadRecord(id);
     state = "View";
 }
Ejemplo n.º 10
0
 public frmInstructor(string id, User currentUser)
 {
     InitializeComponent();
     myCon        = new mySQLcon();
     con          = myCon.con;
     myInstructor = new Instructor();
     CurrentUser  = currentUser;
     //LoadRecord(id);
     state = "View";
 }
Ejemplo n.º 11
0
 public frmUser(string id, User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     CurrentUser = currentUser;
     myUser      = new User();
     LoadRecord(id);
     state = "View";
 }
Ejemplo n.º 12
0
 public frmCourse(string id, User currentUser)
 {
     InitializeComponent();
     myCon       = new mySQLcon();
     con         = myCon.con;
     myCourse    = new Course();
     CurrentUser = currentUser;
     LoadRecord(id);
     state = "View";
 }
Ejemplo n.º 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");
            //}
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 15
0
 private void Login_Load(object sender, EventArgs e)
 {
     myCon = new mySQLcon();
     con   = myCon.con;
 }