private void runForm_Click(object sender, EventArgs e) { if (animationRadio.Checked) { // Tasks 5.1 and 5.2 AnimationForm form = new AnimationForm(); form.Show(); } else if (flyWithMeRadio.Checked) { // Tasks 5.3, 5.4 and 5.5 FlyWithMeForm form = new FlyWithMeForm(); form.Show(); } else if (graphicsRadio.Checked) { // Tasks 6.1 to 6.6 GraphicsForm form = new GraphicsForm(); form.Show(); } else if (bouncingBallRadio.Checked) { BouncingBallForm ballForm = new BouncingBallForm(); ballForm.Show(); } }
private void runProgram(object sender, EventArgs e) { if (animationRadioButton.Checked) { // Tasks 5.1 and 5.2 AnimationForm form = new AnimationForm(); form.Show(); } else if (flyMeRadioButton.Checked) { // Tasks 5.3, 5.4 and 5.5 FlyMeForm form = new FlyMeForm(); form.Show(); } else if (unit6RadioButton.Checked) { // Tasks 6.1 to 6.6 GraphicsForm form = new GraphicsForm(); form.Show(); } else if (bouncingBallRadio.Checked) { Bouncing_ball bouncing_Ball = new Bouncing_ball(); bouncing_Ball.Show(); } else if (unit7RadioButton.Checked) { SketchForm sketchForm = new SketchForm(); sketchForm.Show(); } }
private void AlphaForm_Shown(object sender, EventArgs e) { if (Animation == Animations.rotation) { AnimationForm.rotationForm(this, this, 0, 1, Location.X, Location.Y, Width, Height, _transparency, AnimationSpeed, 0); } else if (Animation == Animations.Flip) { AnimationForm.rotationForm(this, this, 0, 1, Location.X, Location.Y, Width, Height, _transparency, AnimationSpeed, 1); } /* * else * if (Animation == Animations.stereomutation) * { * AnimationForm.stereomutationForm(this, this, 0, 1, Location.X, Location.Y, Width, Height, _transparency, AnimationSpeed, 0); * } */ else if (Animation == Animations.Fading) { AnimationForm.fadingForm(this, 窗体图像, _transparency, AnimationSpeed); } else { SetOpacity(_transparency); } }
private void runProgram(object sender, EventArgs e) { if (animationRadioButton.Checked) { // Tasks 5.1 and 5.2 AnimationForm form = new AnimationForm(); form.Show(); } else if (flyMeRadioButton.Checked) { // Tasks 5.3, 5.4 and 5.5 FlyMeForm form = new FlyMeForm(); form.Show(); } else if (graphicsRadioButton.Checked) { // Tasks 6.1 to 6.5 GraphicsForm2 form = new GraphicsForm2(); form.Show(); } else if (ballRadioButton.Checked) { // Task 6.6 Bouncing_ball form = new Bouncing_ball(); form.Show(); } }
public void StartAnimation() { FreeAnimation(); _animationForm = new AnimationForm(); _animationForm.Show(); Application.DoEvents(); }
public override void doIt(MArgList args) { if (animationForm == null) { animationForm = new AnimationForm(); animationForm.On_animationFormClosed += On_animationFormClosed; } animationForm.Show(); animationForm.BringToFront(); animationForm.WindowState = FormWindowState.Normal; }
public MainForm() { this.MyGUIEnum = GUIEnum.MainFormGUI; this.InitializeGUIs(); InitializeComponent(); this.UserInitialize(); this.MyAnimationForm = new AnimationForm(); //Test(); TargethExp(); this.MyAnimationForm.Show(); this.MyAnimationForm.Left = this.Right; }
private void FreeAnimation() { try { if (_animationForm != null) { _animationForm.Dispose(); _animationForm = null; } } catch { } }
void UserInitializeComponent() { this.SettingGUIList = new List<UserControl>(); this.MyAnimationForm = new AnimationForm(this); this.MyAnimationForm.SetOSM(this.MyOSM); this.MyAnimationForm.Show(); this.MyAnimationForm.Left = this.Right; this.DoubleBuffered = true; this.MyNetworkGUI = new NetworkGUI(this); this.MyNetworkGUI.SetOSM(this.MyOSM); this.MyNetworkGUI.Dock = DockStyle.Fill; this.MyNetworkGUI.Name = "NetworkGUI"; this.Controls.Add(this.MyNetworkGUI); this.SettingGUIList.Add(this.MyNetworkGUI); this.MyNetworkGUI.Visible = true; this.MyAgentGUI = new AgentGUI(this); this.MyAgentGUI.SetOSM(this.MyOSM); this.MyAgentGUI.Dock = DockStyle.Fill; this.MyAgentGUI.Name = "AgentGUI"; this.Controls.Add(this.MyAgentGUI); this.SettingGUIList.Add(this.MyAgentGUI); this.MyAgentGUI.Visible = false; this.MyLearningGUI = new LearningGUI(this); this.MyLearningGUI.SetOSM(this.MyOSM); this.MyLearningGUI.Dock = DockStyle.Fill; this.MyLearningGUI.Name = "LearningGUI"; this.Controls.Add(this.MyLearningGUI); this.SettingGUIList.Add(this.MyLearningGUI); this.MyLearningGUI.Visible = false; this.MyAnimationGUI = new AnimationGUI(); this.MyAnimationGUI.Dock = DockStyle.Fill; this.MyAnimationGUI.Name = "AnimationGUI"; this.Controls.Add(this.MyAnimationGUI); this.SettingGUIList.Add(this.MyAnimationGUI); this.MyAnimationGUI.Visible = false; this.MyExperimentGUI = new ExperimentGUI(this); this.MyExperimentGUI.Dock = DockStyle.Fill; this.MyExperimentGUI.Name = "ExperimentGUI"; this.Controls.Add(this.MyExperimentGUI); this.SettingGUIList.Add(this.MyExperimentGUI); this.MyExperimentGUI.Visible = false; }
private void runProgram(object sender, EventArgs e) { if (animationRadioButton.Checked) { // Tasks 5.1 and 5.2 AnimationForm form = new AnimationForm(); form.Show(); } else if (flyMeRadioButton.Checked) { // Tasks 5.3, 5.4 and 5.5 FlyMeForm form = new FlyMeForm(); form.Show(); } }
public void Execute() { if (!Check()) { return; } Model.Asset asset = form.project.Assets[form.listAssets.SelectedIndices[0]]; if (asset.Atlas == null) { return; } AnimationForm aniForm = new AnimationForm(); aniForm.SetData(form.project, asset); aniForm.ShowDialog(); form.dirty = true; form.UpdateTitle(); }
private void On_animationFormClosed() { animationForm = null; }