public BackToCompanyListCommand(ViewModelBase createCompanyViewModel, IRenavigator renavigator) { _companyViewModel = createCompanyViewModel; _renavigator = renavigator; _companyViewModel.PropertyChanged += CreateCompanyViewModel_PropertyChanged; }
public CompanyDetailsViewModel(IRenavigator navigateBackToCompanyView, IBonusRepository bonusRepo) { _employees = new ObservableCollection <Employee>(); _bonusRepo = bonusRepo; BackToListCommand = new BackToCompanyListCommand(this, navigateBackToCompanyView); }
public UpsertCompanyViewModel(ICompanyRepository compRepo, IRenavigator navigateBackToCompanyView) { BackToCompanyListCommand = new BackToCompanyListCommand(this, navigateBackToCompanyView); UpsertCompanyCommand = new UpsertCompanyCommand(this, compRepo, UpsertAction, navigateBackToCompanyView); UpsertActionTitle = UpsertAction.Add.ToString(); }
public BackToEmployeeListCommand(ViewModelBase viewModelBase, IRenavigator renavigator) { _viewModelBase = viewModelBase; _renavigator = renavigator; _viewModelBase.PropertyChanged += CreateCompanyViewModel_PropertyChanged; }
public LogoutViewModel(IAccountService accountService, IAuthenticator authenticator, IRenavigator renavigate) { _accountService = accountService; _authenticator = authenticator; _renavigate = renavigate; Logout = new RelayACommand(LogoutUser); }
public LoginCommand(LoginViewModel loginViewModel, IAuthenticator authenticator, IRenavigator renavigator) { _loginViewModel = loginViewModel; _authenticator = authenticator; _renavigator = renavigator; _loginViewModel.PropertyChanged += LoginViewModel_PropertyChanged; }
public RegisterCommand(RegisterViewModel registerViewModel, IUserManager userManager, IRenavigator loginNavigator) { this.registerViewModel = registerViewModel; this.userManager = userManager; this.loginNavigator = loginNavigator; }
public RegisterCommand(RegisterViewModel registerViewModel, IAuthenticator authenticator, IRenavigator registerRenavigator) { _registerViewModel = registerViewModel; _authenticator = authenticator; _registerRenavigator = registerRenavigator; }
public LoginViewModel( IUserManager userManager, IRenavigator watchListNavigator, IRenavigator registerRenavigator) { LoginCommand = new LoginCommand(userManager, this, watchListNavigator); ViewRegisterCommand = new RedirectCommand(registerRenavigator); }
public RegisterCommand(RegisterViewModel registerViewModel, IAuthenticator authenticator, IRenavigator registerRenavigator) { _registerViewModel = registerViewModel; _authenticator = authenticator; _registerRenavigator = registerRenavigator; _registerViewModel.PropertyChanged += RegisterViewModel_PropertyChanged; }
public LoginCommand(LoginViewModel loginViewModel, IAuthenticator authenticator, IRenavigator renavigator) { _loginViewModel = loginViewModel; _authenticator = authenticator; _renavigator = renavigator; }
public UpsertCompanyCommand(UpsertCompanyViewModel addCompanyViewModel, ICompanyRepository compRepo, UpsertAction upsertAction, IRenavigator renavigator) { _compRepo = compRepo; _addCompanyViewModel = addCompanyViewModel; _renavigator = renavigator; _upsertAction = upsertAction; _addCompanyViewModel.PropertyChanged += CreateCompanyViewModel_PropertyChanged; }
public UpsertEmployeeCommand(UpsertEmployeeViewModel upsertEmployeeViewModel, IEmployeeRepository employeeRepo, UpsertAction upsertAction, IRenavigator renavigator) { _employeeRepo = employeeRepo; _upsertEmployeeViewModel = upsertEmployeeViewModel; _renavigator = renavigator; _upsertAction = upsertAction; upsertEmployeeViewModel.PropertyChanged += CreateCompanyViewModel_PropertyChanged; }
public ChangeLanguageViewModel(IAuthenticator authenticator, IRenavigator loginRenavigator) { App.LanguageChanged += LanguageChanged; ViewLoginCommand = new RenavigateCommand(loginRenavigator); Authenticator = authenticator; if (authenticator.IsLoggedIn) { IsVisibilityNeeded = false; } else { IsVisibilityNeeded = true; } ChangeLanguageCommand = new ChangeLanguageCommand(this); Languages = App.Languages; Language = App.Language; }
public UpsertEmployeeViewModel(IEmployeeRepository employeeRepo, ICompanyRepository companyRepo, IRenavigator navigateBackToCompanyView) { _companyRepo = companyRepo; _companies = new ObservableCollection <Company>(); UploadCompaniesComboBox(); BackToCompanyListCommand = new BackToEmployeeListCommand(this, navigateBackToCompanyView); UpsertCompanyCommand = new UpsertEmployeeCommand(this, employeeRepo, UpsertAction, navigateBackToCompanyView); UpsertActionTitle = UpsertAction.Add.ToString(); }
public LoginCommand(IUserManager userManager, LoginViewModel loginViewModel, IRenavigator watchListNavigator) { this.userManager = userManager; this.loginViewModel = loginViewModel; this.watchListNavigator = watchListNavigator; }
public RenavigateCommand(IRenavigator renavigator) { _renavigator = renavigator; }
public AccountDataService(IAuthenticator authenticator, TaskManagementAccountsHttpClient accountsHttpClient, IRenavigator loginRenavigator) { _authenticator = authenticator; _accountsHttpClient = accountsHttpClient; _loginRenavigator = loginRenavigator; }
public IssueDataService(IAuthenticator authenticator, TaskManagementIssuesHttpClient issuesHttpClient, IRenavigator loginRenavigator) { _authenticator = authenticator; _issuesHttpClient = issuesHttpClient; _loginRenavigator = loginRenavigator; }
public LoginViewModel(IAuthenticator authenticator, IRenavigator renavigator) { LoginCommand = new LoginCommand(authenticator, this, renavigator); }
public RegisterViewModel(IUserManager userManager, IRenavigator loginNavigator) { RegisterCommand = new RegisterCommand(this, userManager, loginNavigator); ViewLoginCommand = new RedirectCommand(loginNavigator); }
public LogoutCommand(IUserManager userManager, IRenavigator loginNavigator) { this.userManager = userManager; this.loginNavigator = loginNavigator; }
public TaskDataService(IAuthenticator authenticator, TaskManagementTasksHttpClient tasksHttpClient, IRenavigator loginRenavigator) { _authenticator = authenticator; _tasksHttpClient = tasksHttpClient; _loginRenavigator = loginRenavigator; }
public MainViewModel(ICurrentContext navigator, IViewModelFactory viewModelFactory, IUserManager userManager, IRenavigator loginNavigator) { Navigator = navigator; this.userManager = userManager; UpdateCurrentViewModelCommand = new UpdateCurrentViewModelCommand(navigator, viewModelFactory); UpdateCurrentViewModelCommand.Execute(ViewType.Login); LogoutCommand = new LogoutCommand(userManager, loginNavigator); }
public RedirectCommand(IRenavigator renavigator) { this.renavigator = renavigator; }
public LoginViewModel(IAuthenticator authenticator, IRenavigator renavigator) { _authenticator = authenticator; _renavigator = renavigator; LoginCommand = new RelayCommand(LoginCmd); }
public SignOutCommand(IAuthenticator authenticator, IRenavigator renavigator) { _authenticator = authenticator; _renavigator = renavigator; }
public RegisterCommand(RegisterViewModel registerViewModel, IAuthenticator authenticator, IRenavigator registerRenavigator) { this.registerViewModel = registerViewModel; this.authenticator = authenticator; this.registerRenavigator = registerRenavigator; }
public RenavigateCommand(IRenavigator renavigator) { this.renavigator = renavigator; }