// Button Clicked handler.
        async void OnGetInfoButtonClicked(object sender, EventArgs args)
        {
            DataTransfer3InfoPage infoPage = new DataTransfer3InfoPage();
            await Navigation.PushAsync(infoPage);

            // Set event handler for obtaining information.
            infoPage.InformationReady += OnInfoPageInformationReady;
        }
Exemple #2
0
        // Button Clicked handler.
        async void OnGetInfoButtonClicked(object sender, EventArgs args)
        {
            DataTransfer3InfoPage infoPage = new DataTransfer3InfoPage();
            await Navigation.PushAsync(infoPage);

            // Set event handler for obtaining information.
            infoPage.InformationReady += OnInfoPageInformationReady;
        }
        // ListView ItemSelected handler.
        async void OnListViewItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            if (args.SelectedItem != null)
            {
                // De-select the item.
                listView.SelectedItem = null;

                DataTransfer3InfoPage infoPage = new DataTransfer3InfoPage();
                await Navigation.PushAsync(infoPage);
                infoPage.InitializeInfo((Information)args.SelectedItem);

                // Set event handler for obtaining information.
                infoPage.InformationReady += OnInfoPageInformationReady;
            }
        }
Exemple #4
0
        // ListView ItemSelected handler.
        async void OnListViewItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            if (args.SelectedItem != null)
            {
                // De-select the item.
                listView.SelectedItem = null;

                DataTransfer3InfoPage infoPage = new DataTransfer3InfoPage();
                await Navigation.PushAsync(infoPage);

                infoPage.InitializeInfo((Information)args.SelectedItem);

                // Set event handler for obtaining information.
                infoPage.InformationReady += OnInfoPageInformationReady;
            }
        }