public frmEmailDetails(User currentUser) { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; CurrentUser = currentUser; }
public frmEquipment() { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; myEquipment = new Equipment(); state = "Empty"; }
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"; }
public frmUser(User currentUser) { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; CurrentUser = currentUser; myUser = new User(); state = "Empty"; }
public frmCourse(User currentUser) { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; myCourse = new Course(); CurrentUser = currentUser; state = "Empty"; }
public frmEquipment(string id, User currentUser) { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; myEquipment = new Equipment(); //LoadRecord(id); state = "View"; }
public frmEnrolment(User currentUser) { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; myEnrolment = new Enrolment(); CurrentUser = currentUser; state = "Empty"; }
public frmStaff(string id, User currentUser) { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; myStaff = new Staff(); CurrentUser = currentUser; //LoadRecord(id); state = "View"; }
public frmInstructor(string id, User currentUser) { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; myInstructor = new Instructor(); CurrentUser = currentUser; //LoadRecord(id); state = "View"; }
public frmUser(string id, User currentUser) { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; CurrentUser = currentUser; myUser = new User(); LoadRecord(id); state = "View"; }
public frmCourse(string id, User currentUser) { InitializeComponent(); myCon = new mySQLcon(); con = myCon.con; myCourse = new Course(); CurrentUser = currentUser; LoadRecord(id); state = "View"; }
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"); //} }
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(); }
private void Login_Load(object sender, EventArgs e) { myCon = new mySQLcon(); con = myCon.con; }