Example #1
0
        public static ImageSource GetImageSource(SystemIcon systemIcon, int width, int height)
        {
            switch (systemIcon)
            {
            case SystemIcon.UACShield:
                return(GetImageSource("#106", width, height));

            default:
                throw new ArgumentOutOfRangeException(nameof(systemIcon), systemIcon, null);
            }
        }
Example #2
0
 public static ImageSource GetImageSource(SystemIcon systemIcon, int width, int height)
 {
     return(GetImageSource(systemIcon.Origin, systemIcon.IconIdOrIndex, width, height));
 }