public WeekController(String userid) { m_pDb = MainDatabaseManager.GetDatabase(userid); DateTime time = DateTime.Now; GregorianCalendar calendar = new GregorianCalendar(); int weekOfYears = calendar.GetWeekOfYear(time, CalendarWeekRule.FirstDay, DayOfWeek.Monday); String weekKey = time.Year + "-" + weekOfYears; m_pModel = m_pDb.GetWeekyState(weekKey); }
public PocketController(String userid) { m_pDB = MainDatabaseManager.GetDatabase(userid); m_pModel = m_pDB.GetPocketModel(); }
public DailyMissionsController(String userid) { m_pDb = MainDatabaseManager.GetDatabase(userid); }
public HistoryController(String userid) { m_pDb = MainDatabaseManager.GetDatabase(userid); m_pHistoryModel = m_pDb.GetHistoryModule(); }
public PersonInfoController(String userid) { MainDatabase db = MainDatabaseManager.GetDatabase(userid); m_pModel = db.GetUserInfo(); }
public AwardController(String userid) { m_pDb = MainDatabaseManager.GetDatabase(userid); m_pAwardModel = m_pDb.GetAwardModule(); }
public AchievementController(String userid) { m_pDb = MainDatabaseManager.GetDatabase(userid); m_pModel = m_pDb.GetAchievementsModel(); }