예제 #1
0
        private void treeView1_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs <object> e)
        {
            TreeViewUsbItem Node = e.NewValue as TreeViewUsbItem;

            if (Node != null)
            {
                listView1.ItemsSource = ListViewUsbItem.UsbDetail(Node.Data);
            }
        }
예제 #2
0
        private void treeView1_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs <object> e)
        {
            TreeViewUsbItem Node = e.NewValue as TreeViewUsbItem;

            if (Node != null)
            {
                listView1.ItemsSource = ListViewUsbItem.UsbDetail(Node.Data);

                //Splash.IO.PORTS.UsbNodeConnectionInformation nodeData = (Splash.IO.PORTS.UsbNodeConnectionInformation)Node.Data;

                //Debug.WriteLine(nodeData.DevicePath);
            }
        }