public OffsetForm(Animation animation) { InitializeComponent(); RectangleOffset += new RectangleTransformedEventHandler(OffsetForm_RectangleOffset); currentAnimation = animation; InitalizeComboBox(); numericUpDownOffset.Maximum = currentAnimation.Frames.Length; }
public ParentForm(Animation animation) { InitializeComponent(); foreach (string value in animation.CurrentFrame.GetRectangles.Keys) { comboBox1.Items.Add(value); comboBox2.Items.Add(value); } currentAnimation = animation; ChildTransformed += new RectangleTransformedEventHandler(ParentForm_ChildTransformed); }