Example #1
0
 public RestAPI getAPI()
 {
     if (myRestAPI == null)
     {
         myRestAPI = new RestAPI();
     }
     return(myRestAPI);
 }
Example #2
0
 public LoginPageVM(App _app)
 {
     app          = _app;
     api          = app.getAPI();
     BotaoVisivel = true;
     Autenticar   = new Command(async() => await _autenticar());
     Registrar    = new Command(async() => await _registrar());
 }
Example #3
0
 public TasksVM(App _app)
 {
     ListaAtualizando = false;
     app             = _app;
     api             = app.getAPI();
     TaskSelecionado = new TaskModel();
     Tasks           = new ObservableCollection <TaskModel>();
     DeleteTask      = new Command(async() => await _deleteTask());
     SaveTask        = new Command(async() => await _saveTask());
     RefreshTasks    = new Command(async() => await _refreshTasks());
 }