public static int Count() { if (Gloval.Database.Account.Event == null) { DAOEvent.GetEventEntry(); Gloval.Database.Account.DTEvent = DateTime.Now; } return(Gloval.Database.Account.Event.Count()); }
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); }
public static void requestEvent() { DAOAdvisor.GoToadvCities(); //Gloval.Database.Account.DTEvent = DateTime.Now; Gloval.Database.Account.Event = DAOEvent.GetEventEntry(); }
public static void ForceUpdate() { DAOEvent.GetEventEntry(); Gloval.Database.Account.DTEvent = DateTime.Now; }