コード例 #1
0
        private static void LoadSampleProducts()
        {
            globe.purplesc = new purples();
            globe.purplesc = SaveLoad5.LoadData();


            cc = 0;
            for (int i = 0; i < globe.purplesc.score.Count; i++)
            {
                var bicycle5 = new Document();

                bicycle5 ["earthid"]   = globe.purplesc.score [i].earthid;
                bicycle5 ["iid"]       = globe.purplesc.score [i].iid;
                bicycle5 ["score"]     = globe.purplesc.score [i].score;
                bicycle5 ["earthname"] = globe.purplesc.score [i].earthname;


                bicycle5 ["mainstars"]      = globe.purplesc.score [i].mainstars;
                bicycle5 ["mainstarsscore"] = globe.purplesc.score [i].mainstarsscore;
                bicycle5 ["mainstarsname"]  = globe.purplesc.score [i].mainstarsname;


                roomscoreTable.PutItemAsync(bicycle5, (r) => {
                    Loadcount();
                }); //put one block
            }       //for 144
        }           //loadsample end
コード例 #2
0
        private static void Loadmore1()
        {
            globe.purplesc = new purples();
            globe.purplesc = SaveLoad5.LoadData();


            cc = 0;
            for (int i = 0; i < globe.purplesc.fming.Count; i++)              //change

            {
                var bicycle5 = new Document();

                bicycle5 ["stype"] = globe.purplesc.fming [i].stype;           //change
                bicycle5 ["ii"]    = globe.purplesc.fming [i].ii;              //change
                bicycle5 ["label"] = globe.purplesc.fming [i].label;           //change


                moreTable.PutItemAsync(bicycle5, (r) => {
                    Loadcount();
                }); //put one block
            }       //for 144
        }           //loadsample end
コード例 #3
0
 private void PerformIns()
 {
     /*  Demo for insert one item
      * roomscore myScore = new roomscore
      * {
      *      earthid = 0,
      *      iid = 0,
      *      score = 6,
      *      earthname = "xx",
      *      mainstars="1,11",
      *      mainstarsscore="7,4",
      *      mainstarsname="xxxx",
      *
      * };
      *
      * // Save the book.
      * Context.SaveAsync(myScore,(result)=>{
      *      if(result.Exception == null)
      *              resultText.text += @"Score saved";
      * });
      */
     globe.purplesc = new purples();
     globe.purplesc = SaveLoad5.LoadData();
 }