public HomePage() { InitializeComponent(); TOSADevices.AddRange(MainWindow.Conn.GetAllTosaDevices()); ROSADevices.AddRange(MainWindow.Conn.GetAllRosaDevices()); }
private void DeviceSelector_MouseEnter(object sender, MouseEventArgs e) { if ((bool)TOSARadio.IsChecked) { TOSADevices.Clear(); TOSADevices.AddRange(MainWindow.Conn.GetAllTosaDevices()); DeviceSelector.ItemsSource = new List <TOSADevice>(); DeviceSelector.ItemsSource = TOSADevices; } else if ((bool)ROSARadio.IsChecked) { ROSADevices.Clear(); ROSADevices.AddRange(MainWindow.Conn.GetAllRosaDevices()); DeviceSelector.ItemsSource = new List <ROSADevice>(); DeviceSelector.ItemsSource = ROSADevices; } }