示例#1
0
        public static async Task ReloadData()
        {
            Vendors.Clear();
            Fuelings.Clear();
            Summary.Clear();

            await InitData(silent : true);
        }
示例#2
0
        void CreateCells(bool reload)
        {
            if (reload)
            {
                App.Fuelings.CollectionChanged -= Fuelings_CollectionChanged;
                Fuelings.Clear();
            }
            foreach (var fueling in App.Fuelings)
            {
                Fuelings.Add(new FuelingCell(fueling));
            }

            App.Fuelings.CollectionChanged += Fuelings_CollectionChanged;
        }