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(); }
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(); }