public static void RemoveDevice(Geodevice device) { //Remove a device from the list if (allDevices.Contains(device)) { allDevices.Remove(device); } }
public ArEnvironment(Geodevice device) { InitializeComponent(); currentDevice = device; LookingFor.Text += device.deviceName; App.arHandler.OpenCamera(); App.arHandler.SetGeodevice(currentDevice); }
async void OpenAR(object sender, EventArgs e) { //Open the AR environment Button button = sender as Button; Geodevice selected = GeodeviceManager.FindDevice(button.Text); if (selected != null) { await Navigation.PushAsync(new ArEnvironment(selected)); } else { await DisplayAlert("Invalid Device", "The device you selected could not be found.", "OK"); } }
public static void AddDevice(Geodevice device) { //Add a device to the list allDevices.Add(device); }