Beispiel #1
0
 /// <summary>
 /// Note that this method runs _before_ changes are copied from the baseclass
 /// So if we want to update tiles based on the new start point,
 /// Then UpdateColors can't rely on our internal start point
 /// </summary>
 protected override bool TryCopy(PagedElementViewModel other)
 {
     if (!(other is SpriteElementViewModel that))
     {
         return(false);
     }
     format = that.format;
     return(true);
 }
 /// <summary>
 /// Note that this method runs _before_ changes are copied from the baseclass
 /// So if we want to update colors based on the new start point,
 /// Then UpdateColors can't rely on our internal start point
 /// </summary>
 protected override bool TryCopy(PagedElementViewModel other)
 {
     if (!(other is PaletteElementViewModel that))
     {
         return(false);
     }
     format = that.format;
     UpdateColors(other.Start, other.CurrentPage);
     return(true);
 }