Ejemplo n.º 1
0
 public static void AutoRequestResearch(Gadget gg)
 {
     if (gg.bStopAutoRequest)
     {
         return;
     }
     DebuggingAndTracking.Debug.Logging("AutoRequestResearch start");
     BUSResearch.requestResearch();
     Gloval.bResearchOverviewIsNewData = true;
     DebuggingAndTracking.Debug.Logging("AutoRequestResearch done");
 }
Ejemplo n.º 2
0
        public static string requestResearchFromGadget()
        {
            //if (Gloval.bBuildingsOverviewIsNewData)
            //{
            ////cap nhat thong tin dang luu tru phu` hop voi thoi diem hien tai
            //hien gio chua xay dung colddown cho các nhà đang xây dựng
            //nen khong co lam phan nay
            BUSResearch.CalculateFromLocalData();

            //cap nhat lai thanh du lieu cu
            //de gadget khong lay lai lan nua
            Gloval.bResearchOverviewIsNewData = false;

            //lay du lieu moi update cho gadget
            //return JsonConvert.SerializeObject(Gloval.Database.Account.Cities);
            //return "new data";
            string str = Gadget.GetResearchOverviewUnit();

            DebuggingAndTracking.Debug.Logging(str);
            return(str);
            //}

            //return "";
        }
Ejemplo n.º 3
0
 public static void AutoRequestResearch()
 {
     BUSResearch.ForceUpdate();
 }