Ejemplo n.º 1
0
		protected virtual void UpdateListViewItem(ListViewItem li, GISADataset.TrusteeRow tRow)
		{
			li.Text = tRow.Name;
			while (li.SubItems.Count < li.ListView.Columns.Count)
				li.SubItems.Add(string.Empty);

			li.SubItems[ColumnHeaderIsActive.Index].Text = TranslationHelper.FormatBoolean(tRow.IsActive);
			
            if (tRow.IsDescriptionNull())
				li.SubItems[ColumnHeaderDescription.Index].Text = string.Empty;
			else
				li.SubItems[ColumnHeaderDescription.Index].Text = tRow.Description;

			li.Tag = tRow;
		}