//[STAThread] public static CheckUSBDeviceTool SharedUSBDeviceTool() { if (_instancyType == null) { _instancyType = new CheckUSBDeviceTool(); } return(_instancyType); }
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(); }