private void RefreshTaskList() { tasks = TaskyApp.Current.TodoManager.GetTasks(); // create our adapter taskList = new TodoItemListAdapter(this, tasks); //Hook up our adapter to our ListView taskListView.Adapter = taskList; }
protected override void OnResume() { base.OnResume(); tasks = TodoItemManager.GetTasks(); taskList = new TodoItemListAdapter(this, tasks); taskListView.Adapter = taskList; }
protected override void OnResume () { base.OnResume (); tasks = TodoItemManager.GetTasks (); // create our adapter taskList = new TodoItemListAdapter (this, tasks); //Hook up our adapter to our ListView taskListView.Adapter = taskList; }
protected override void OnResume() { base.OnResume(); tasks = TodoItemManager.GetTasks(); // create our adapter taskList = new TodoItemListAdapter(this, tasks); //Hook up our adapter to our ListView taskListView.Adapter = taskList; }
protected override void OnResume () { base.OnResume (); tasks = AppDelegate.Current.TaskMgr.GetTasks(); // create our adapter taskList = new TodoItemListAdapter(this, tasks); //Hook up our adapter to our ListView taskListView.Adapter = taskList; }
private async Task InitializeAdapter() { // get all stored tasks //tasks = TodoItemManager.GetTasks(); tasks = (await TodoItemManager.GetKTasks()); // create our adapter taskList = new TodoItemListAdapter(this, tasks); //Hook up our adapter to our ListView taskListView.Adapter = taskList; }
protected override void OnResume() { base.OnResume(); if (TaskyApp.Current.TaskUser == null) { var loginRegister = new Intent(this, typeof(LoginRegisterScreen)); StartActivity(loginRegister); } else { //tasks = TaskyApp.Current.TodoManager.GetTasks(); tasks = Task.Run(() => TaskyApp.Current.TodoContractClient.GetItems()).Result; // create our adapter taskList = new TodoItemListAdapter(this, tasks); //Hook up our adapter to our ListView taskListView.Adapter = taskList; } }
protected async override void OnResume () { base.OnResume (); // NO AUTH //HACK: tasks = AppDelegate.Current.TaskMgr.GetTasks(); todoItems = await AppDelegate.Current.TaskMgr.GetTasksAsync (); todoList = new TodoItemListAdapter(this, todoItems); todoListView.Adapter = todoList; // AUTH // if (AzureStorageImplementation.DefaultService.User == null) // await AzureStorageImplementation.DefaultService.Authenticate (this); // // if (AzureStorageImplementation.DefaultService.User != null) { // Console.WriteLine ("Logged in user: "******"Didn't log in"); // } }