private void show_Click(object sender, RoutedEventArgs e) { list1.Items.Clear(); try { for (int i = 1; i <= deviceManager.DeviceInfos.Count; i