private void AskUnclaimDeviceButton_Click(object sender, RoutedEventArgs e)
        {
            var particleDevice = GetParticleDeviceFromControl(sender);

            if (particleDevice == null)
            {
                return;
            }

            var listViewItem = (ListViewItem)DeviceListBox.ContainerFromItem(particleDevice);

            FlyoutHelper.AskUnclaimDevice(particleDevice, this, listViewItem);
        }
示例#2
0
 private void RemoveDevice_Click(object sender, RoutedEventArgs e)
 {
     Devices.RemoveAt(DeviceListBox.SelectedIndex);
     DeviceListBox.Focus();
 }
示例#3
0
 private void AddDevice_Click(object sender, RoutedEventArgs e)
 {
     Devices.Add(new DeviceSettings());
     DeviceListBox.SelectedIndex = Devices.Count - 1;
     DeviceListBox.Focus();
 }