Esempio n. 1
0
 //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);
 }
Esempio n. 2
0
 public Reception(int id,String firstname,String lastname,Database db1)
 {
     this.db1=db1;
     this.id = id;
     this.firstname = firstname;
     this.lastname = lastname;
 }
Esempio n. 3
0
 //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);
 }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
 public Form2(String username,Database db1)
 {
     InitializeComponent();
     this.Show();
     this.db1 = db1;
     init_admin(username);
     form_initialization_data();
 }
Esempio n. 6
0
 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);
 }
Esempio n. 7
0
 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);
 }
Esempio n. 8
0
 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); ;
 }
Esempio n. 9
0
 public Auth(Database db1)
 {
     this.db1=db1;
 }
Esempio n. 10
0
 public Form1(Database db1)
 {
     this.db1 = db1;
     InitializeComponent();
     auth1 = new Auth(db1);
 }
Esempio n. 11
0
 public Booking(Database database)
 {
     this.database = database;
 }