Exemple #1
0
        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;
        }
Exemple #2
0
        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;

            // AZURE 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");
//			}
        }