/* * constructor set db, controller and model * client must connect to server */ public CSendReportController(VSendReportForm view, DbCenter db) { _view = view; _db = db; // connecting to server ... }
public ClientRequestManager(DbCenter dbCenter) { _dbCenter = dbCenter; }
/* * in constructor set DbCenter */ public ClientCommunication(DbCenter db);
/* * constructor set DB and connect to DB */ public RequestManager(DbCenter db);
public CViewReportController(VReportListView lv, VReportView v, DbCenter db) { _listView = lv; _view = v; _db = db; }