Пример #1
0
        private async void OnDeviceTapped(object sender, ItemTappedEventArgs e)
        {
            //Deselect Item immediately
            ((ListView)sender).SelectedItem = null;

            if (!(e.Item is WLEDDevice targetDevice))
            {
                return;
            }

            string url = "http://" + targetDevice.NetworkAddress;

            //Open web UI control page
            var page = new DeviceControlPage(url, targetDevice);
            await Navigation.PushModalAsync(page, false);
        }
Пример #2
0
 internal async void OpenAPDeviceControlPage()
 {
     var page = new DeviceControlPage("http://192.168.4.1", null);
     await Navigation.PushModalAsync(page, false);
 }