Example #1
0
    public static IEnumerator ProcessInit(ProgData prog_)
    {
        yield return(null);

        string res_cfg_path;

#if UNITY_ANDROID
        res_cfg_path = AssetCacheBdl.RES_CFG_PATH;
#else
        res_cfg_path = "file:///" + AssetCacheBdl.RES_CFG_PATH;
#endif

        WWW www = new WWW(res_cfg_path);
        while (!www.isDone)
        {
            yield return(null);
        }

        if (!string.IsNullOrEmpty(www.error))
        {
            //加载出错
            yield break;
        }

        prog_.progress = 0.1f;

        AbsResConfig.ReadFromFile(www);
        www.Dispose();

        yield return(null);

        prog_.progress = 1f;
        prog_.isDone   = true;
    }
Example #2
0
        //Get Program data from the Version selected of the Program or by default the Latest Version Number Present
        public JsonResult ProgramDataPC(int MacID, string ProgNo, int VerNo)
        {
            String          ProgData; //= "";
            object          ip     = db.tblmachinedetails.Where(m => m.MachineID == MacID).Select(m => m.IPAddress).FirstOrDefault();
            String          MacInv = db.tblmachinedetails.Where(m => m.MachineID == MacID).Select(m => m.MachineDisplayName).FirstOrDefault();
            ProgramTransfer PT     = new ProgramTransfer(ip.ToString());

            PT.GetProgramDataPC(MacInv, ProgNo.ToString(), VerNo, out ProgData);
            return(Json(ProgData.ToString(), JsonRequestBehavior.AllowGet));
        }
 public PowerUnitController()
 {
     Tab = new ProgData();
 }
 public PowerUnitController()
 {
     Tab = new ProgData();
 }
 public PowerUsersController()
 {
     Tab = new ProgData();
 }
Example #6
0
    void OnLoadReqProg(IProgress prog_)
    {
        ProgData prog = prog_ as ProgData;

        CCApp.StartCoroutine(ProcessInit(prog));
    }
 public PowerUsersController()
 {
     Tab = new ProgData();
 }