Пример #1
0
        protected override async void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Activity_To_Do);

            CurrentPlatform.Init();

            // await InitLocalStoreAsync();

            // Get the Mobile Service sync table instance to use
            var promptTable = client.GetSyncTable <Prompt> ();

            //textNewToDo = FindViewById<EditText> (Resource.Id.textNewToDo); //change to fit

            // Create an adapter to bind the items with the view
            adapter = new Adapters.PromptAdapter(this, Resource.Layout.Row_List_To_Do);
            var listViewPrompt = FindViewById <ListView> (Resource.Id.listViewToDo);

            listViewPrompt.Adapter = adapter;

            // Load the items from the Mobile Service
            OnRefreshItemsSelected();
        }
Пример #2
0
        protected override async void OnCreate (Bundle bundle)
        {
            base.OnCreate (bundle);

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.Activity_To_Do);

            CurrentPlatform.Init ();

           // await InitLocalStoreAsync();

            // Get the Mobile Service sync table instance to use
            var promptTable = client.GetSyncTable <Prompt> ();

            //textNewToDo = FindViewById<EditText> (Resource.Id.textNewToDo); //change to fit

            // Create an adapter to bind the items with the view
            adapter = new Adapters.PromptAdapter(this, Resource.Layout.Row_List_To_Do);
            var listViewPrompt = FindViewById<ListView> (Resource.Id.listViewToDo);
            listViewPrompt.Adapter = adapter;

            // Load the items from the Mobile Service
            OnRefreshItemsSelected ();
        }