示例#1
0
        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;
        }
示例#2
0
        protected override void OnResume()
        {
            base.OnResume();

             			tasks = TodoItemManager.GetTasks();

             			taskList = new TodoItemListAdapter(this, tasks);

             			taskListView.Adapter = taskList;
        }
示例#3
0
        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;
        }
示例#4
0
        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;
		}
示例#6
0
        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;
        }
示例#7
0
        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");
//			}
		}