Ejemplo n.º 1
0
        async void OnClick(object sender, EventArgs ea)
        {
            var itemsr   = string.Empty;
            var client   = RestService.HttpClient;
            var response = await client.GetAsync(RestService.ipupdate + "GetItemNote.php");

            JsonItemNote ObjItemList = new JsonItemNote();

            if (response.IsSuccessStatusCode)
            {
                string NoteInfoList = response.Content.ReadAsStringAsync().Result;
                ObjItemList = JsonConvert.DeserializeObject <JsonItemNote>(NoteInfoList);
                // listviewNotes.ItemsSource = ObjItemList.NoteInfo;
                foreach (JsonItemnoteClass t in ObjItemList.NoteInfo)
                {
                    // FlagNu = t.Name;
                    itemsr = t.Name;
                }
                //var FlagNuf = new List<JsonItemnoteClass>();
            }
            List <JsonItemnoteClass> items = new List <JsonItemnoteClass>(ObjItemList.NoteInfo);

            if (multiPage == null)
            {
                multiPage = new SelectMultipleBasePage <JsonItemnoteClass>(items)
                {
                    Title = "CHECK EXTRA ADD-ONS"
                }
            }
            ;

            await Navigation.PushAsync(multiPage);
        }
Ejemplo n.º 2
0
        async void OnClick(object sender, EventArgs ea)
        {
            var items = new List <CheckItem>();

            items.Add(new CheckItem {
                Name = "Xamarin.com"
            });
            items.Add(new CheckItem {
                Name = "Twitter"
            });
            items.Add(new CheckItem {
                Name = "Facebook"
            });
            items.Add(new CheckItem {
                Name = "Internet ad"
            });
            items.Add(new CheckItem {
                Name = "Online article"
            });
            items.Add(new CheckItem {
                Name = "Magazine ad"
            });
            items.Add(new CheckItem {
                Name = "Friends"
            });
            items.Add(new CheckItem {
                Name = "At work"
            });

            if (multiPage == null)
            {
                multiPage = new SelectMultipleBasePage <CheckItem>(items)
                {
                    Title = "Check all that apply"
                }
            }
            ;

            await Navigation.PushAsync(multiPage);
        }