コード例 #1
0
        public static int Count()
        {
            if (Gloval.Database.Account.Event == null)
            {
                DAOEvent.GetEventEntry();
                Gloval.Database.Account.DTEvent = DateTime.Now;
            }

            return(Gloval.Database.Account.Event.Count());
        }
コード例 #2
0
        public static DTOEvent Get(int iIndex)
        {
            //tu dong cap nhat danh sach neu chua co
            if (Gloval.Database.Account.Event == null)
            {
                DAOEvent.GetEventEntry();
                Gloval.Database.Account.DTEvent = DateTime.Now;
            }

            if (0 <= iIndex && iIndex < Gloval.Database.Account.Event.Count())
            {
                return(Gloval.Database.Account.Event[iIndex]);
            }

            //thong bao loi~
            return(null);
        }
コード例 #3
0
 public static void requestEvent()
 {
     DAOAdvisor.GoToadvCities();
     //Gloval.Database.Account.DTEvent = DateTime.Now;
     Gloval.Database.Account.Event = DAOEvent.GetEventEntry();
 }
コード例 #4
0
 public static void ForceUpdate()
 {
     DAOEvent.GetEventEntry();
     Gloval.Database.Account.DTEvent = DateTime.Now;
 }