public SearchUsersViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService, IEventAggregator eventAggregator) : base(navigationService, heritageAPIService, pageDialogService, dialogService) { Title = "Usuários"; Icone = "avatarIcon.png"; Users = new ObservableCollection <User>(); _eventAggregator = eventAggregator; Body = true; _eventAggregator.GetEvent <EventCommunicationUsers>().Subscribe(SearchUser); }
public SearchEnvironmentsViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService, IEventAggregator eventAggregator) : base(navigationService, heritageAPIService, pageDialogService, dialogService) { Title = "Ambientes"; Icone = "placeholderIcon.png"; Environments = new ObservableCollection <Environment>(); _eventAggregator = eventAggregator; Body = true; _eventAggregator.GetEvent <EventCommunicationEnvironments>().Subscribe(SearchEnvironment); }
public SelectedHeritagesViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService) : base(navigationService, heritageAPIService, pageDialogService, dialogService) { Title = "Verificar patrimônios"; }
public AddMaintenanceViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService) : base(navigationService, heritageAPIService, pageDialogService, dialogService) { Title = "Manutenção"; }
public HistoricsViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService) : base(navigationService, heritageAPIService, pageDialogService, dialogService) { Title = "Historicos"; }
public LoginViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IHeritageAPIService heritageAPIService, IDialogService dialogService) : base(navigationService, heritageAPIService, pageDialogService, dialogService) { if (Application.Current.Properties.ContainsKey("Login")) { Application.Current.Properties["Login"] = null; } else { Application.Current.Properties.Add("Login", null); } if (Application.Current.Properties.ContainsKey("Token")) { Application.Current.Properties["Token"] = null; } else { Application.Current.Properties.Add("Token", null); } if (Application.Current.Properties.ContainsKey("Usuario")) { Application.Current.Properties["Usuario"] = null; } else { Application.Current.Properties.Add("Usuario", null); } if (Application.Current.Properties.ContainsKey("Theme")) { Application.Current.Properties["Theme"] = "Light"; } else { Application.Current.Properties.Add("Theme", "Light"); } }
public SearchViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService, IEventAggregator eventAggregator) : base(navigationService, heritageAPIService, pageDialogService, dialogService) { Title = "Pesquisar"; _eventAggregator = eventAggregator; }
public MainViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService) : base(navigationService, heritageAPIService, pageDialogService, dialogService) { Theme theme = new Theme(); theme.ToExchangeTheme(); }