コード例 #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();
            //await InitLocalStoreAsync();

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

            textNewToDo = FindViewById <EditText> (Resource.Id.textNewToDo);

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

            listViewBeacon.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();
            //await InitLocalStoreAsync();

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

            textNewToDo = FindViewById<EditText> (Resource.Id.textNewToDo);

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

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