public ReservationController()
 {
     this.selectClient          = new SelectClient();
     this.updateClient          = new UpdateClient(selectClient);
     this.selectServices        = new SelectServices();
     this.selectReservation     = new SelectReservation();
     this.selectEmployee        = new SelectEmployee();
     this.selectReservationList = new SelectReservation();
     this.getVReservation       = new CreateViewVreservation(selectClient, selectReservation, selectServices, selectEmployee);
     this.insertObjectToDB      = new FasadeInsertDB(new DBInsertClient(selectClient), new DBInsertServices(selectServices), new DBInsertReservation(selectReservation),
                                                     new DBInsertEmployee(selectEmployee), new SelectClient(), new SelectServices(), new SelectReservation(), new SelectEmployee());
     this.updateReservation = new UpdateReservation(selectReservation);
 }
Esempio n. 2
0
 public MainForm()
 {
     InitializeComponent();
     SqlLiteDB.SqlLiteDBCreateTableIFNotExist();
     this.selectClient      = new SelectClient();
     this.selectServices    = new SelectServices();
     this.selectReservation = new SelectReservation();
     this.selectEmployee    = new SelectEmployee();
     this.getVReservation   = new CreateViewVreservation(selectClient, selectReservation, selectServices, selectEmployee);
     this.updateClient      = new UpdateClient(selectClient);
     this.deleteReservation = new DeleteReservation();
     this.insertObjectToDB  = new FasadeInsertDB(new DBInsertClient(selectClient), new DBInsertServices(selectServices), new DBInsertReservation(selectReservation),
                                                 new DBInsertEmployee(selectEmployee), new SelectClient(), new SelectServices(), new SelectReservation(), new SelectEmployee());
 }