Example #1
0
        public static void soundParser(ManagementObjectSearcher searcher)
        {
            SoundAdapters myList = new SoundAdapters();

            foreach (ManagementObject queryObj in searcher.Get())
            {
                Sound currentItem = new Sound(queryObj);
                myList.adptersList.Add(currentItem);
            }
            SoundData.EventHandler(myList);
        }
 public void toDataGrid(SoundAdapters myList)
 {
     dataGrid1.ItemsSource = myList.adptersList;
 }