コード例 #1
0
ファイル: DbCenter.cs プロジェクト: farzinsarvaramini/factory
 public DbCenter()
 {
     _instance    = this;
     clientDb     = new clientContainer();
     ReportCenter = new DbReportCenter(clientDb);
     UserCenter   = new DbUserCenter(clientDb);
 }
コード例 #2
0
 public CUserController(DbCenter db, ClientCommunication c)
 {
     _loginView   = new VLoginForm();
     _initForm    = new VInitializeForm();
     _db          = db;
     _defaultUser = _db.UserCenter.GetDefaultUser();
     _cc          = c;
 }
コード例 #3
0
 public CRequestController(DbCenter db, ClientCommunication c)
 {
     _db = db;
     _cc = c;
     _sendRequestView    = new VSendRequest();
     _recivedRequestView = new VRecievedRequest();
     _sentRequestView    = new VSentRequest();
     _requestListView    = new VRequestList();
 }
コード例 #4
0
 public CHomePageController(DbCenter db, ClientCommunication cC)
 {
     client   = cC;
     dbCenter = db;
     sReportC =
         new CSendReportController(db, cC);
     vReportC  = new CViewReportController(db, cC);
     cRequestC = new CRequestController(db, cC);
     cUserC    = new CUserController(db, cC);
 }
コード例 #5
0
 public CSendReportController(DbCenter db, ClientCommunication cC)
 {
     _db            = db.ReportCenter;
     _communication = cC;
 }
コード例 #6
0
 public RequestManager(DbCenter dbCenter)
 {
     _dbCenter = dbCenter;
 }
コード例 #7
0
 public CViewReportController(DbCenter db, ClientCommunication cC)
 {
     _communication = cC;
     _db            = db.ReportCenter;
 }