public NewDepartamentoViewModel() { _navigationService = DependencyService.Get <Services.INavigationService>(); _messageService = DependencyService.Get <Services.IMessageService>(); Departamento = new Departamento(); SalvarCommand = new Command(ExecuteSalvar); }
public EvaluateMessageStep( Services.IMessageService evaluateMessageService, OpenTracing.ITracer?tracer = default) { _evaluateMessageService = evaluateMessageService; _tracer = tracer; }
public NewCategoriaViewModel() { _navigationService = DependencyService.Get <Services.INavigationService>(); _messageService = DependencyService.Get <Services.IMessageService>(); Categoria = new Categoria(); SalvarCommand = new Command(ExecuteSalvar); }
public LoginViewModel() { this.LoginCommand = new Command(this.Login); this.RegisterCommand = new Command(this.Register); this._messageService = DependencyService.Get <Services.IMessageService>(); this._navigationService = DependencyService.Get <Services.INavigationService>(); }
public ShowDialogSampleViewModel(IDialogService dialogService, Services.IMessageService messageService) { _dialogService = dialogService; _messageService = messageService; LabelText = "別ウィンドウを開くサンプルです"; ReturnBtnCmd = new DelegateCommand(ExecuteReturnBtnCmd); }
public LoginViewModel() { this.LoginCommand = new Command(this.Login); this.LimparCommand = new Command(this.Limpar); this.CreditosCommand = new Command(this.Creditos); this._messageService = DependencyService.Get <Services.IMessageService>(); this._NavigationService = DependencyService.Get <Services.INavigationService>(); }
public UsersController(UserManager <Models.ApplicationUser> userManager, SignInManager <Models.ApplicationUser> signInManager, Services.IMessageService messageService, Services.IRecaptchaService recaptchaService, IOptions <Services.JwtSettings> jwtOptions) { _jwtSettings = jwtOptions.Value; _userManager = userManager; _signInManager = signInManager; _messageService = messageService; _recaptchaService = recaptchaService; }
public LoginViewModel() { Title = "Login"; _azureService = DependencyService.Get <AzureService>(); _messageService = DependencyService.Get <Services.IMessageService>(); LoginCommand = new Command(ExecuteLogarAsync); LoginFacebookCommand = new Command(ExecuteLoginCommandAsync); }
public ProjetoViewModel() { Title = "Projetos"; Projetos = new ObservableRangeCollection <Projeto>(); LoadProjetoCommand = new Command(async() => await ExecuteLoadProjetoCommand()); _messageService = DependencyService.Get <Services.IMessageService>(); _navigationService = DependencyService.Get <Services.INavigationService>(); }
public ProcessThreadStep( Services.IRedditService redditService, Services.IMessageService messageService, OpenTracing.ITracer?tracer = default) { _redditService = Guard.Argument(redditService).NotNull().Value; _messageService = Guard.Argument(messageService).NotNull().Value; _tracer = tracer; }
public UserInsertRequestViewModel() { this._messageService = DependencyService.Get <Services.IMessageService>(); SignUpCommand = new Command(async() => await SignUp()); BackToLoginCommand = new Command(async() => await BackToLogin()); InitCommand = new Command(async() => await Init()); ChangePassCommand = new Command(() => Change()); UpdateDataCommand = new Command(async() => await UpdateData()); }
public LoginViewModel() { _azureService = DependencyService.Get <AzureService>(); _messageService = DependencyService.Get <Services.IMessageService>(); _navigationService = DependencyService.Get <Services.INavigationService>(); LoginCommand = new Command(ExecuteLogarAsync); LoginFacebookCommand = new Command(ExecuteLoginCommandAsync); RegisterCommand = new Command(NavegarToRegister); }
public CatsViewModel() { Cats = new ObservableRangeCollection <Cat>(); GetCatsCommand = new Command(async() => await GetCats(), () => !IsBusy); navigationService = DependencyService.Get <Services.INavigationService>(); messageService = DependencyService.Get <Services.IMessageService>(); }
public CategoriaDetailViewModel(Categoria categoria = null) { _navigationService = DependencyService.Get <Services.INavigationService>(); _messageService = DependencyService.Get <Services.IMessageService>(); Categoria = new Categoria(); SalvarCommand = new Command(ExecuteSalvar); Title = categoria.Nome; Categoria = categoria; }
public DepartamentoDetailViewModel(Departamento departamento = null) { _navigationService = DependencyService.Get <Services.INavigationService>(); _messageService = DependencyService.Get <Services.IMessageService>(); Departamento = new Departamento(); SalvarCommand = new Command(ExecuteSalvar); Title = departamento.Nome; Departamento = departamento; }
public DepartamentoViewModel() { Title = "Departamentos"; Departamentos = new ObservableRangeCollection <IDepartamento>(); LoadDepartamentosCommand = new Command(async() => await ExecuteLoadDepartamentosCommand()); AddDepartamentoCommand = new Command(ExecuteAddDepartamento); _messageService = DependencyService.Get <Services.IMessageService>(); _navigationService = DependencyService.Get <Services.INavigationService>(); }
public ProjectViewModel() { MessageService = DependencyService.Get <Services.IMessageService>(); Project = new Project(); Tasks = new ObservableCollection <TaskViewModel>(); EditCommand = new Command(EditProject); SaveCommand = new Command(SaveChanges); AddCommand = new Command(AddTask); SaveTaskCommand = new Command(SaveTask); EditTaskCommand = new Command(EditTask); DeleteTaskCommand = new Command(DeleteTaskAsync); }
private async void DeleteProject(object projectObject) { Services.IMessageService MessageService = DependencyService.Get <Services.IMessageService>(); if (await MessageService.ShowDialog("Are you sure?")) { await Navigation.PopAsync(); ProjectViewModel project = projectObject as ProjectViewModel; await projectManager.DeleteProjectAsync(project.Project); Projects.Remove(project); } }
public DetailViewModel(Tarefa tarefa = null) { tarefa = new Tarefa(); connection = new LocalDB(); Tarefas = new ObservableCollection <Tarefa>(connection.GetT()); FrameCommand = new Command(FrameAction); AdicionarCommand = new Command(AdicionarAction); EditarCommand = new Command(EditarAction); ExcluirCommand = new Command(ExcluirAction); RealizeCommand = new Command(RealizeAction); this.messageService = DependencyService.Get <Services.IMessageService>(); this.navigationService = DependencyService.Get <Services.INavigationService>(); }
public PopupCadastroViewModel(Tarefa tarefa = null) { Tarefa tarefaParam = new Tarefa(); this.tarefa = tarefa; EditorAdd(this.tarefa); CancelarCommand = new Command(CancelarAction); SalvarCommand = new Command(SalvarAction); this.messageService = DependencyService.Get <Services.IMessageService>(); this.navigationService = DependencyService.Get <Services.INavigationService>(); }
public MasterViewModel() { _navigationService = DependencyService.Get <Services.INavigationService>(); _messageService = DependencyService.Get <Services.IMessageService>(); ClienteCommand = new Command(Cliente); ItemCommand = new Command(Item); CategoriaCommand = new Command(Categoria); ProjetoCommand = new Command(Projeto); FuncionarioCommand = new Command(Funcionario); DepartamentoCommand = new Command(Departamento); SobreCommand = new Command(Sobre); SairCommand = new Command(ExecuteSairCommand); }
private async void SaveProject(object projectObject) { ProjectViewModel project = projectObject as ProjectViewModel; if (project != null && project.IsValid) { project.Trim(); await projectManager.AddProjectAsync(project.Project); Projects.Add(project); Back(); } else { //show nessage about problem Services.IMessageService MessageService = DependencyService.Get <Services.IMessageService>(); await MessageService.ShowAsync("Please fill empty fields"); } }
public ViewModelBase() { this._navigationService = DependencyService.Get <Services.INavigationService> (); this._messageService = DependencyService.Get <Services.IMessageService> (); }
public ViewModelBase() { this._navigationService = DependencyService.Get<Services.INavigationService> (); this._messageService = DependencyService.Get<Services.IMessageService> (); }