public bool MoveNext()
 {
     if (++currIndex >= _sysSData.syssDataMultiple.Count)
     {
         return false;
     }
     else
     {//set the currindex to next item in dictionary
         dictEnum.MoveNext();
         currSystemData = dictEnum.Current.Value;
     }
     return true;
 }
 public WMI(SystemData thisSys)
 {
     sysData = thisSys;
 }
 public void SystemDataAdd(SystemData sysData)
 {
     // adds a single system(ordereddictinary data) to the Systems dictionary
     if (syssDataMultiple.ContainsKey(sysData.compSerialNum))
     {
         DialogResult result = MessageBox.Show("The Inventory Data file already contains this system.\r\nReplace previous values?", "Inventory Data Collection", MessageBoxButtons.OKCancel, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
         if (result == DialogResult.OK)
             syssDataMultiple.Remove(sysData.compSerialNum);
         else
             Environment.Exit(1);
     }
     syssDataMultiple.Add(sysData.compSerialNum, sysData);
 }