Category.cs 725 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Text.RegularExpressions;
  6. using System.Threading.Tasks;
  7. namespace TaskbarGroups.Models
  8. {
  9. /// <summary>
  10. /// 应用分类
  11. /// </summary>
  12. class Category
  13. {
  14. public Guid Id { get; set; }
  15. private static readonly int[] iconSize = { 16, 32, 48, 256, 512 };
  16. private readonly Regex specialCharRegex = new Regex("[^a-zA-Z0-9\u4e00-\u9fa5]+", RegexOptions.Compiled);
  17. /// <summary>
  18. ///
  19. /// </summary>
  20. /// <param name="path">分组配置文件</param>
  21. public Category(string path)
  22. {
  23. this.Id = Guid.NewGuid();
  24. }
  25. }
  26. }