Example #1
0
 public static void RemoveDevice(Geodevice device)
 {
     //Remove a device from the list
     if (allDevices.Contains(device))
     {
         allDevices.Remove(device);
     }
 }
Example #2
0
        public ArEnvironment(Geodevice device)
        {
            InitializeComponent();

            currentDevice    = device;
            LookingFor.Text += device.deviceName;

            App.arHandler.OpenCamera();
            App.arHandler.SetGeodevice(currentDevice);
        }
Example #3
0
        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");
            }
        }
Example #4
0
 public static void AddDevice(Geodevice device)
 {
     //Add a device to the list
     allDevices.Add(device);
 }