예제 #1
0
        public HomePage()
        {
            InitializeComponent();

            TOSADevices.AddRange(MainWindow.Conn.GetAllTosaDevices());
            ROSADevices.AddRange(MainWindow.Conn.GetAllRosaDevices());
        }
예제 #2
0
 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;
     }
 }