예제 #1
0
 //[STAThread]
 public static CheckUSBDeviceTool SharedUSBDeviceTool()
 {
     if (_instancyType == null)
     {
         _instancyType = new CheckUSBDeviceTool();
     }
     return(_instancyType);
 }
예제 #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            MyListView.Items.Add(new { ID = "001", Name = "李刚", SEX = "男" });
            MyListView.Items.Add(new { ID = "002", Name = "李刚他爸", SEX = "男" });
            MyListView.Items.Add(new { ID = "003", Name = "李刚他妈", SEX = "女" });

            CheckUSBDeviceTool.SharedUSBDeviceTool().CheckUSBDeviceTimer();
        }