public ItemActions(ref ListView listviewp, int itemp, ref SystemsDataMultiple allSystemsDatap)
 {
     InitializeComponent();
     listViewInvFile = listviewp;
     item = itemp;
     allSystemsData = allSystemsDatap;
     rows = listViewInvFile.Items;   //gets all the listview rows to work with in methods
     labelInitialStatement.Text += (item + 1).ToString();    //ROW is always item+1
     //next get assettag and serial index, then get data and load this form with that data
     int serialNumIndex = listViewInvFile.Columns.IndexOfKey("compSerialNum");  //index of the serial number column
     serialNoMR = rows[item].SubItems[serialNumIndex].Text;   //gets the MR serial number from listview row
     assetTagIndex = listViewInvFile.Columns.IndexOfKey("compAssetTag");
     serialNumHRIndex = listViewInvFile.Columns.IndexOfKey("compSerialNumHR");
     if (rows[item].SubItems[assetTagIndex].Text != string.Empty)
         textboxAssetTag.Text = rows[item].SubItems[assetTagIndex].Text;
     if (rows[item].SubItems[serialNumHRIndex].Text != string.Empty)
         textBoxSerialNo.Text = rows[item].SubItems[serialNumHRIndex].Text;
     assetTag = textboxAssetTag.Text;
     serialNoHR = textBoxSerialNo.Text;
 }
            private SystemsDataMultiple _sysSData; //to store the object iterating over

            #endregion Fields

            #region Constructors

            public SystemDataEnumerator(SystemsDataMultiple sysSData)
            {
                _sysSData = sysSData;
                dictEnum = _sysSData.syssDataMultiple.GetEnumerator();
                currIndex = -1;
            }