예제 #1
0
        public async void SetRankingTabledata()
        {
            int i = 0;


            // List<Price> prices = Finance.Parse(await StorageControl.PCLLoadCommand());//登録データ読み込み
            Tabledata anser = await Models.RankingTabledata();//データの現在値を取得する



            RankingItemList.Add(new Tabledata
            {
                RankingValue = anser.RankingValue,
                Name         = anser.Name,     // "Sony",
                Dividend     = anser.Dividend, //保有数*
                //Itemprice = anser.Itemprice,// 2015,
                //Prev_day = anser.Prev_day,//前日比±**
                //Realprice = anser.Realprice,//現在値*// 1000,
                //RealValue = anser.RealValue,// 100,
                //Percent = anser.Percent,//前日比%**// "5"
            });


            i = ++i;
        }
예제 #2
0
        public async void Initialize(int page)
        {
            IsActive     = true;
            Owner.Status = "ランキング読み込み中:" + Name;

            RankingItemList.Clear();

            var a = await RankingInstance.GetRankingAsync(Category, page);

            if (a == null)
            {
                IsActive    = false;
                IsPreparing = true;
                return;
            }

            foreach (var item in a.ItemList)
            {
                //そのページのランキングは存在しないか準備中
                if (item.Rank == "1" && page != 1)
                {
                    IsPreparing = true;
                    break;
                }

                RankingItemList.Add(new RankingResultEntryViewModel(item));
                IsPreparing = false;
            }
            Owner.Status = "";
            IsActive     = false;
        }
예제 #3
0
        public async void Initialize(int page)
        {
            IsActive = true;
            RankingItemList.Clear();

            var a = await RankingInstance.GetRankingAsync(Category, page);

            if (a == null)
            {
                IsActive    = false;
                IsPreparing = true;
                return;
            }

            foreach (var item in a.ItemList)
            {
                //そのページのランキングは存在しないか準備中
                if (item.Rank == "1" && page != 1)
                {
                    IsPreparing = true;
                    break;
                }

                RankingItemList.Add(item);
                IsPreparing = false;
            }

            IsActive = false;
        }