public void RemoveTab(TabEntity tabToRemove)
 {
     if (tabToRemove != null)
     {
         groups[tabToRemove.GetNameKey()].Remove(tabToRemove);
     }
 }
        public static string GetNameKey(this TabEntity tab)
        {
            char key = char.ToLower(tab.Name[0]);

            if (key < 'a' || key > 'z')
            {
                key = '#';
            }

            return(key.ToString());
        }