// Construtor public CriarContaLogic() { _servico = new UsuarioService(); _tema = new FactoryTheme(Theme.Principal); _navigationService = DependencyService.Get <INavigationService>(); CadastrarCommand = new Command(ExecuteCadastrarCommand); TermosUsoCommand = new Command(ExecuteTermosUsoCommand); }
// Contrutor public LoginLogic() { servico = new UsuarioService(); _tema = new FactoryTheme(Theme.Principal); _navigationService = DependencyService.Get <INavigationService>(); EntrarCommand = new Command(ExecutarEntrarCommand); CadastrarCommand = new Command(ExecutarCadastrarCommand); EsqueceuSenhaCommand = new Command(ExecutarEsqueceuSenhaCommand); }
// Contructs public CatalogoLogic() { _navigationService = DependencyService.Get <INavigationService>(); _tema = new FactoryTheme(Theme.Principal); ItemsColumnLeft = new List <ProdutoDto>(); ItemsColumnRight = new List <ProdutoDto>(); LoadCompaniestColumnLeft(); LoadCompaniestColumnRight(); }
private void SetTema(int tema) { var opcao = (Theme)tema; switch (opcao) { case Theme.Principal: break; case Theme.Red: _tema = new FactoryTheme(Theme.Red); break; case Theme.Pink: _tema = new FactoryTheme(Theme.Pink); break; case Theme.Purple: _tema = new FactoryTheme(Theme.Purple); break; case Theme.DeepPurple: _tema = new FactoryTheme(Theme.DeepPurple); break; case Theme.Indigo: _tema = new FactoryTheme(Theme.Indigo); break; case Theme.Blue: _tema = new FactoryTheme(Theme.Blue); break; case Theme.LightBlue: _tema = new FactoryTheme(Theme.LightBlue); break; case Theme.Cyan: _tema = new FactoryTheme(Theme.Cyan); break; case Theme.Teal: _tema = new FactoryTheme(Theme.Teal); break; case Theme.Brown: _tema = new FactoryTheme(Theme.Brown); break; default: break; } }
public MasterLogic() { _tema = new FactoryTheme(Theme.Principal); _navigationService = DependencyService.Get <INavigationService>(); }
// Construtor public EsqueceuSenhaLogic() { _tema = new FactoryTheme(Theme.Principal); _navigationService = DependencyService.Get <INavigationService>(); }