Пример #1
0
        public Boolean addItem(string label)
        {
            Boolean flag = findInSaved(label);

            if (flag)
            {
                Saved.Add(label);
            }
            getWeather(label);
            return(flag);
        }
Пример #2
0
        public void RefreshData()
        {
            Saved.Clear();
            Rules.Clear();
            NewTransaction.DefaultAll();
            NewRule.DefaultAll();

            foreach (var row in SqliteDataAccess.LoadTransactions())
            {
                Saved.Add(row);
            }

            foreach (var row in SqliteDataAccess.LoadRules())
            {
                Rules.Add(row);
            }

            // apply current rules to current transactions and calculate account balance
            var cb = Categorize.ApplyCategoriesAndBalances(Saved, Rules, SqliteDataAccess.GetStartingBalance());

            CurrentBalance = "$" + cb.ToString();
        }