//Two constructors one is needed if we log out the other for basic log in //every button must call a function of the class that controlls it : required by Prof public Form1() { InitializeComponent(); db1 = new Database(); db1.init(); auth1 = new Auth(db1); }
public Reception(int id,String firstname,String lastname,Database db1) { this.db1=db1; this.id = id; this.firstname = firstname; this.lastname = lastname; }
//every button must call a function of the class that controlls it : required by Prof //Final form only log out required public Form3(String username,Database db1) { InitializeComponent(); this.db1 = db1; this.Show(); init_cleaner(username); clean1.list_assigned_rooms(form3_lb); }
public Cleaning(int id,String firstname,String lastname,String username,Database db1,System.Windows.Forms.Label l1) { this.db1=db1; this.id = id; this.firstname = firstname; this.lastname = lastname; l1.Text = username; }
public Form2(String username,Database db1) { InitializeComponent(); this.Show(); this.db1 = db1; init_admin(username); form_initialization_data(); }
public Form5(String username,Database db1) { InitializeComponent(); this.Show(); this.db1 = db1; init_user(username); Form5_label_name.Text = u1.getUser(); u1.list_current_reservations(Form5_lb); }
public Form7(Users u1) { InitializeComponent(); this.u1 = u1; this.Show(); u1.init_form7_fields(form7_cb_roomType, form7_cb_price, form7_cb_roomCap,Form7_label_name); this.db1 = u1.getDB(); form7_dtp_start.MinDate = DateTime.UtcNow; form7_dtp_end.MinDate = form7_dtp_start.MinDate.AddDays(1); }
public Form4(String username,Database db1) { InitializeComponent(); this.db1 = db1; this.Show(); init_reception(username); r1.reception_dataset_populate_rname(form4_cb_roomnumber); r1.reception_dataset_populate_uname(form4_cb_username); r1.reception_dataset_populate(form4_datagridview); r1.reception_dataset_populate(form4_datagridview2); form4_label_user.Text = "Hello " + r1.user_info() + " !"; form4_dtp_checkin.MinDate = DateTime.UtcNow; form4_dtp_checkout.MinDate = form4_dtp_checkin.MinDate.AddDays(1); ; }
public Auth(Database db1) { this.db1=db1; }
public Form1(Database db1) { this.db1 = db1; InitializeComponent(); auth1 = new Auth(db1); }
public Booking(Database database) { this.database = database; }