Example #1
0
 public Facade(TourismDB db, DataGrid datagrid)
 {
     this.db       = db;
     this.datagrid = datagrid;
     BuilderMain   = new GridBuilder(datagrid);
     DirectorMain  = new Director(BuilderMain);
     DirectorMain.SetDB(db);
     add = new Adder(db, DirectorMain);
     edd = new Editer(db, DirectorMain);
     del = new Deliter(db, DirectorMain);
 }
Example #2
0
 public Facade(TourismDB db, DataGrid datagrid, ComboBox tablecombobox, ComboBox searchcombobox, TextBox findbox)
 {
     this.db       = db;
     this.datagrid = datagrid;
     TableComboBox = tablecombobox;
     searcher      = new Searcher(db, datagrid, tablecombobox, searchcombobox, findbox);
     BuilderMain   = new GridBuilder(datagrid);
     DirectorMain  = new Director(BuilderMain);
     DirectorMain.SetDB(db);
     add = new Adder(db, DirectorMain);
     edd = new Editer(db, DirectorMain);
     del = new Deliter(db, DirectorMain);
 }