Advertisement
Guest User

IconSize.cs

a guest
May 16th, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System.Collections.Generic;
  2.  
  3. namespace ReplaceIcon
  4. {
  5.     public class IconSize
  6.     {
  7.         public string Size { get; private set; }
  8.  
  9.         public List<string> Related { get; private set; } // e.g. 16 and 16x16, 32 and 32x32, scalable
  10.  
  11.         public IconSize(string size)
  12.         {
  13.             Size = size;
  14.  
  15.             Related = new List<string>() { size };
  16.         }
  17.  
  18.         public IconSize(string size, params string[] related)
  19.             : this(size)
  20.         {
  21.             Related.AddRange(related);
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement