GISA.Controls.ControloAut.ControloAutList.AddItemsToList C# (CSharp) Method

AddItemsToList() protected method

protected AddItemsToList ( ) : void
return void
        protected override void AddItemsToList()
		{
            GISADataset.ControloAutDicionarioRow cadRow = null;
            Font font = null;
            ArrayList items = new ArrayList();
            if (returnedInfo.rowsInfo != null)
            {
                foreach (DataRow rowInfo in returnedInfo.rowsInfo)
                {
                    if (IsSelectedInCbNoticiaAut(((GISADataset.ControloAutDicionarioRow)rowInfo).ControloAutRow.IDTipoNoticiaAut))
                    {
                        cadRow = (GISADataset.ControloAutDicionarioRow)rowInfo;
                        string[] termo = { cadRow.DicionarioRow.Termo };
                        if (cadRow.IDTipoControloAutForma == Convert.ToInt64(TipoControloAutForma.FormaAutorizada))
                            font = this.lstVwPaginated.Font;
                        else
                            font = new Font(this.lstVwPaginated.Font, FontStyle.Italic);

                        ListViewItem item = new ListViewItem(termo, 0, this.lstVwPaginated.ForeColor, this.lstVwPaginated.BackColor, font);
                        items.Add(item);
                        item.SubItems.Add(cadRow.ControloAutRow.TipoNoticiaAutRow.Designacao);
                        item.SubItems.Add(TranslationHelper.FormatBoolean(cadRow.ControloAutRow.Autorizado));
                        item.SubItems.Add(TranslationHelper.FormatBoolean(cadRow.ControloAutRow.Completo));
                        GISADataset.ControloAutDatasExistenciaRow[] cadeRows = null;
                        cadeRows = cadRow.ControloAutRow.GetControloAutDatasExistenciaRows();
                        if (cadeRows.Length == 0)
                            item.SubItems.Add(string.Empty);
                        else
                            item.SubItems.Add(GUIHelper.GUIHelper.FormatDateInterval(cadeRows[0]));
                        item.Tag = cadRow;
                    }
                }
                if (items.Count > 0)
                    this.lstVwPaginated.Items.AddRange((ListViewItem[])(items.ToArray(typeof(ListViewItem))));
            }
		}