private void NewImage(ImageInformation info) { ViewerForm child = new ViewerForm(); child.MdiParent = this; child.Initialize(info, _paintProperties, _animateRegions, true, _useDpi, _animationMode); child.Show(); }
private void _menuItemAnimationCreate_Click(object sender, EventArgs e) { CreateAnimationDialog createAnimationDialog = new CreateAnimationDialog(); createAnimationDialog.Owner = this; if (createAnimationDialog.ShowDialog() == DialogResult.OK) { createAnimationDialog.Image.AnimationGlobalLoop = 1000; createAnimationDialog.Image.AnimationDelay = 500; ImageInformation info = new ImageInformation(createAnimationDialog.Image); ViewerForm child = new ViewerForm(); child.MdiParent = this; child.Initialize(info, _paintProperties, _animateRegions, true, _useDpi, _animationMode); child.Show(); } }