Ejemplo n.º 1
0
 public SpendingDisplayViewModel()
 {
     _currentWindow        = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault();
     _spendingAddDialog    = new SpendingAddDialog();
     _statementSuggestions = _spendingServ.GetStatementSuggetions();
     Load();
 }
 public SpendingDisplayViewModel()
 {
     _key              = "";
     _isFocused        = true;
     _paging           = new PagingWPF();
     spendingAddDialog = new SpendingAddDialog();
     currentWindow     = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault();
 }
Ejemplo n.º 3
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();
        }