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); }
private void RemoveDevice_Click(object sender, RoutedEventArgs e) { Devices.RemoveAt(DeviceListBox.SelectedIndex); DeviceListBox.Focus(); }
private void AddDevice_Click(object sender, RoutedEventArgs e) { Devices.Add(new DeviceSettings()); DeviceListBox.SelectedIndex = Devices.Count - 1; DeviceListBox.Focus(); }