public void EditBtnClicked(string name, int pin, DeviceContentView dcv)
        {
            var a = new AddDevicePg(name, pin, dcv);

            a.Disappearing += DeviceContentFinishedEditing;
            Navigation.PushAsync(a, true);
        }
        void AddDevicePgDisappearing(object sender, System.EventArgs e)
        {
            AddDevicePg adp = (AddDevicePg)sender;

            if (adp.WasSuccessful())
            {
                AddDeviceContent(adp.GetDeviceName(), adp.GetPin());
            }
        }
        void AddDeviceClicked(object sender, System.EventArgs e)
        {
            if (rpiPicker.SelectedItem == null)
            {
                DisplayAlert("Error", "Please select a RPi to add to.", "OK");
                return;
            }

            var a = new AddDevicePg();

            a.Disappearing += AddDevicePgDisappearing;
            Navigation.PushAsync(a, true);
        }