Automatak.Simulator.DNP3.Components.MasterScanControl.RefreshScanList C# (CSharp) Method

RefreshScanList() private method

private RefreshScanList ( ) : void
return void
        private void RefreshScanList()
        {
            this.listViewScans.SuspendLayout();

            try
            {
                this.listViewScans.Items.Clear();
                foreach (var info in scans)
                {
                    var item = new ListViewItem(new string[] { info.description, info.period.ToString() });
                    item.ToolTipText = info.details;
                    item.Tag = info.scan;
                    this.listViewScans.Items.Add(item);
                }
            }
            finally
            {
                this.listViewScans.ResumeLayout();
            }
        }