示例#1
0
        public static System.Windows.Controls.Image ToInventoryImage(this PokemonId pid)
        {
            var img = new System.Windows.Controls.Image {
                Source = pid.ToInventoryBitmap().LoadBitmap()
            };
            var tt = new ToolTip {
                Content = pid.ToString()
            };

            img.ToolTip = tt;
            return(img);
        }
示例#2
0
 public static BitmapSource ToInventorySource(this PokemonId pid)
 {
     return(pid.ToInventoryBitmap().LoadBitmap());
 }