示例#1
0
    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);
    }
示例#2
0
 public PocketController(String userid)
 {
     m_pDB    = MainDatabaseManager.GetDatabase(userid);
     m_pModel = m_pDB.GetPocketModel();
 }
 public DailyMissionsController(String userid)
 {
     m_pDb = MainDatabaseManager.GetDatabase(userid);
 }
示例#4
0
 public HistoryController(String userid)
 {
     m_pDb           = MainDatabaseManager.GetDatabase(userid);
     m_pHistoryModel = m_pDb.GetHistoryModule();
 }
示例#5
0
    public PersonInfoController(String userid)
    {
        MainDatabase db = MainDatabaseManager.GetDatabase(userid);

        m_pModel = db.GetUserInfo();
    }
示例#6
0
 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();
 }