示例#1
0
 /// <summary>
 /// Occures when user change bitmap image
 /// </summary>
 protected void    OnBitmapChanged()
 {
     if (BitmapChanged != null)
     {
         BitmapChangedArgs args = new BitmapChangedArgs(bitmap);
         BitmapChanged(this, args);
         BitmapSkin = args.BitmapSkin;
     }
 }
示例#2
0
 /// <summary>
 /// Try to return skin bitmap for specified name
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void element_BitmapChanged(object sender, BitmapChangedArgs e)
 {
     e.BitmapSkin = GetBitmap(e.Name);
 }