Example #1
0
 public SpendingDisplayViewModel()
 {
     _currentWindow        = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault();
     _spendingAddDialog    = new SpendingAddDialog();
     _statementSuggestions = _spendingServ.GetStatementSuggetions();
     Load();
 }
Example #2
0
        public SpendingDisplayViewModel()
        {
            _safeServ          = new SafeServices();
            _spendingServ      = new SpendingServices();
            _spendingAddDialog = new SpendingAddDialog();

            _key                  = "";
            _isFocused            = true;
            _currentWindow        = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault();
            _statementSuggestions = _spendingServ.GetStatementSuggetions();
            spendings             = _spendingServ.GetSpendings();
            Load();
        }