Exemplo n.º 1
0
 public PersonasViewModel(ErrorHandler errorHandler)
 {
     this.errorHandler         = errorHandler;
     Title                     = "Personas";
     nextButtonBackgroundColor = Color.Transparent;
     buttonBorder              = (Color)Application.Current.Resources["AccentColor"];
     personas                  = new List <PersonaWrapper>();
     pairedPersonas            = new ObservableCollection <PersonaContainer>();
     userPersonas              = UserPersonas.GetInstance();
     updatePairedPersonas();
 }
Exemplo n.º 2
0
        public SettingsViewModel()
        {
            userPersonas = UserPersonas.GetInstance();
            personas     = userPersonas.GetAllPersonas();
            if (App.algorithm == "sar")
            {
                sarCheck  = "True";
                lgbmCheck = "False";
            }
            else
            {
                sarCheck  = "False";
                lgbmCheck = "True";
            }

            OpenGitHubLink = new Command(OpenGitHub);
        }