private void ControlsToData() { _DCPower = null; if (lvList.Items.Count > 0) { _DCPower = new List<PowerSpecificationsDC>(); foreach (ListViewItem lvi in lvList.Items) { var DCpower = (PowerSpecificationsDC) lvi.Tag; _DCPower.Add( DCpower ); } } }