Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public SelectedHeritagesViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService) : base(navigationService, heritageAPIService, pageDialogService, dialogService)
 {
     Title = "Verificar patrimônios";
 }
Beispiel #4
0
 public AddMaintenanceViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService) : base(navigationService, heritageAPIService, pageDialogService, dialogService)
 {
     Title = "Manutenção";
 }
Beispiel #5
0
 public HistoricsViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService) : base(navigationService, heritageAPIService, pageDialogService, dialogService)
 {
     Title = "Historicos";
 }
Beispiel #6
0
        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");
            }
        }
Beispiel #7
0
 public SearchViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService, IEventAggregator eventAggregator) : base(navigationService, heritageAPIService, pageDialogService, dialogService)
 {
     Title            = "Pesquisar";
     _eventAggregator = eventAggregator;
 }
Beispiel #8
0
        public MainViewModel(INavigationService navigationService, IHeritageAPIService heritageAPIService, IPageDialogService pageDialogService, IDialogService dialogService) : base(navigationService, heritageAPIService, pageDialogService, dialogService)
        {
            Theme theme = new Theme();

            theme.ToExchangeTheme();
        }