Пример #1
0
 public LoginViewModel()
 {
     Login             = new Login();
     Prospect          = new ProspectViewModel();
     apiService        = new ApiService();
     DialogService     = new DialogService();
     navigationService = new NavigationService();
 }
Пример #2
0
 public MainViewModel()
 {
     instance   = this;
     LoginVM    = new LoginViewModel();
     ProspectVM = new ProspectViewModel();
     if (!string.IsNullOrEmpty(LoginVM.UserEmail) && !string.IsNullOrEmpty(LoginVM.UserPassword))
     {
         LoginVM.Login.email    = LoginVM.UserEmail;
         LoginVM.Login.password = LoginVM.UserPassword;
     }
     apiService        = new ApiService();
     DialogService     = new DialogService();
     navigationService = new NavigationService();
     MetricsManager.TrackEvent("Pantalla inicial");
 }