protected virtual void updateListViewItem(ListViewItem li, GISADataset.TrusteeRow tRow) { li.Text = tRow.Name; while (li.SubItems.Count < li.ListView.Columns.Count) { li.SubItems.Add(""); } li.SubItems[ColumnHeaderIsActive.Index].Text = TranslationHelper.FormatBoolean(tRow.IsActive); if (tRow.IsDescriptionNull()) { li.SubItems[ColumnHeaderDescription.Index].Text = ""; } else { li.SubItems[ColumnHeaderDescription.Index].Text = tRow.Description; } li.Tag = tRow; }
public override void ModelToView() { IsPopulated = false; txtGroupName.Text = CurrentTrusteeRow.Name; chkActive.Checked = CurrentTrusteeRow.IsActive; if (!CurrentTrusteeRow.IsDescriptionNull()) { txtDescription.Text = CurrentTrusteeRow.Description; } else { txtDescription.Text = ""; } txtDescription.Focus(); CurrentTrusteeRow.IsActive = chkActive.Checked; EnumerateMembership(CurrentTrusteeRow); IsPopulated = true; }