Ejemplo n.º 1
0
 private ListViewItem GetListViewItem(Word w, User CurrentUser)
 {
     if (LvWords.Columns.Count > 0)
     {
         ListViewItem lvi = new ListViewItem();
         lvi.Text = GetStringFromColumn(w, LvWords.Columns[0]);
         for (int i = 1; i < LvWords.Columns.Count; i++)
         {
             lvi.SubItems.Add(new ListViewItem.ListViewSubItem(lvi, GetStringFromColumn(w, LvWords.Columns[i])));
         }
         lvi.Tag = w;
         lvi.ImageIndex = w.GetState(CurrentUser) - 1;
         return lvi;
     }
     else return null;
 }