public IDirectionalAnimation ToItem(AGSSerializationContext context)
        {
            IDirectionalAnimation item = new AGSDirectionalAnimation();

            item.Left      = Left.ToItem(context);
            item.Right     = Right.ToItem(context);
            item.Up        = Up.ToItem(context);
            item.Down      = Down.ToItem(context);
            item.UpLeft    = UpLeft.ToItem(context);
            item.UpRight   = UpRight.ToItem(context);
            item.DownLeft  = DownLeft.ToItem(context);
            item.DownRight = DownRight.ToItem(context);

            return(item);
        }
Esempio n. 2
0
 private void leftDownButton_Click(object sender, EventArgs e)
 {
     DownLeft?.Invoke();
 }
Esempio n. 3
0
 public override Shape clone()
 {
     return(new Rectangle((Point)TopLeft.clone(), (Point)TopRight.clone(), (Point)DownLeft.clone(), (Point)DownRight.clone()));
 }