Ejemplo n.º 1
0
 private static void BindGroupsToListView(ListView listViewToFill, IEnumerable<IGroup> groups)
 {
     foreach (IGroup group in groups)
     {
         var groupItem = new GroupListViewItem(group);
         listViewToFill.Items.Add(groupItem);
     }
 }
Ejemplo n.º 2
0
 private void AddGroupIfNotAlreadyThere(IGroup selectedGroup)
 {
     // this also prevents duplicities in newly created groups not stored in persistence yet
     bool containsName = SelectedGroupsContainGroupName(selectedGroup);
     if (!containsName)
     {
         var selectedGroupItem = new GroupListViewItem(selectedGroup);
         this.lvConnectionTags.Items.Add(selectedGroupItem);
     }
 }