private void AddToGroupByCategories(ColorSchemeGroup group)
 {
     if (!_groupsByCategories.ContainsKey(group.Category))
     {
         _groupsByCategories.Add(group.Category, group);
     }
 }
        public virtual ColorSchemeCategory NewCategory()
        {
            EnsureConfigExists();

            ColorSchemeCategory cat = new ColorSchemeCategory()
            {
                Name = "CSC " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
            };
            ColorSchemeGroup group = new ColorSchemeGroup()
            {
                Category = cat, Schemes = new List <ColorScheme>()
            };

            Config.ColorSchemeGroups.Add(group);
            AddToGroupByCategories(group);

            SaveConfig();
            return(cat);
        }