示例#1
0
 public static BitmapImage[] GetMenuIcons()
 {
     using (var bitmaps = new BitmapList(LoadMenuIcons()))
     {
         return(bitmaps.Select(ToBitmapImage).ToArray());
     }
 }
示例#2
0
 public static BitmapImage[] GetStatusIcons(string fileName)
 {
     using (var bitmaps = new BitmapList(LoadStatusIcons(fileName)))
     {
         return(bitmaps.Select(ToBitmapImage).ToArray());
     }
 }