private static void BindGroupsToListView(ListView listViewToFill, IEnumerable<IGroup> groups)
 {
     foreach (IGroup group in groups)
     {
         var groupItem = new GroupListViewItem(group);
         listViewToFill.Items.Add(groupItem);
     }
 }
 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);
     }
 }