public LoggedOutApplicationState(ISavvyNavigationService navigationService, IDropboxAuthenticationService dropboxAuthenticationService, ISessionStateService sessionStateService) { this._navigationService = navigationService; this._dropboxAuthenticationService = dropboxAuthenticationService; this._sessionStateService = sessionStateService; this._loginItem = new NavigationItemViewModel(this.Login) { Label = "Login", Symbol = Symbol.NewWindow }; }
public ShellViewModel(ISavvyNavigationService navigationService, ISessionStateService sessionStateService) { this._navigationService = navigationService; this._sessionStateService = sessionStateService; this.Actions = new BindableCollection<NavigationItemViewModel>(); this.SecondaryActions = new BindableCollection<NavigationItemViewModel>(); }
public LoggedInApplicationState(WinRTContainer container, ISavvyNavigationService navigationService, ILoadingService loadingService, ISessionStateService sessionStateService) { this._container = container; this._navigationService = navigationService; this._loadingService = loadingService; this._sessionStateService = sessionStateService; this._refreshItem = new NavigationItemViewModel(async () => await this.RefreshAsync()) { Label = "Refresh", Symbol = Symbol.Refresh }; this._logoutItem = new NavigationItemViewModel(this.Logout) { Label = "Logout", Symbol = Symbol.LeaveChat }; }
public AddTransactionViewModel(YnabApi.YnabApi api, ISavvyNavigationService navigationService, ILoadingService loadingService, ISessionStateService sessionStateService) { this._api = api; this._navigationService = navigationService; this._loadingService = loadingService; this._sessionStateService = sessionStateService; this.Payees = new BindableCollection<Payee>(); this.Accounts = new BindableCollection<Account>(); this.Categories = new BindableCollection<CategoryViewModel>(); this.IsOutflow = true; }
public OpenBudgetApplicationState(WinRTContainer container, ISavvyNavigationService navigationService, ILoadingService loadingService, ISessionStateService sessionStateService) { this._container = container; this._navigationService = navigationService; this._loadingService = loadingService; this._sessionStateService = sessionStateService; this._overviewItem = new NavigationItemViewModel(this.Overview) { Label = "Overview", Symbol = Symbol.Globe }; this._transactionsItem = new NavigationItemViewModel(this.Transactions) { Label = "Transactions", Symbol = Symbol.AllApps }; this._addTransactionItem = new NavigationItemViewModel(this.AddTransaction) { Label = "Add transaction", Symbol = Symbol.Add }; this._refreshItem = new NavigationItemViewModel(this.RefreshAsync) { Label = "Refresh", Symbol = Symbol.Refresh }; this._changeBudgetItem = new NavigationItemViewModel(this.ChangeBudget) { Label = "Change budget", Symbol = Symbol.Switch }; }