public void SetImage(BitmapImage source, int size, bool AllowDropping) { img = new OwnImage(AllowDropping); img.Source = source; img.Width = Size; img.Height = Size; }
public CodeBall(BitmapImage source, int size, MainWindow wnd, BitmapImage hidden = null) { this.Size = size; this.wnd = wnd; HiddenImage = new OwnImage(false); HiddenImage.Source = hidden; HiddenImage.Width = Size; HiddenImage.Height = Size; this.SetImage(source, size, false); }