private void VisualisationForm_Load(object sender, EventArgs e) { base.MDIContainerForm_Load(); Presenter = new VisualisationPresenter(this); RunForm = new VisualisationRunForm(); SettingsForm = new VisualisationSettingsForm(); AnimatorForm = new VisualisationAnimatorForm(); GoogleEarthForm = new GoogleEarthForm(); RunForm.MdiParent = this; RunForm.Show(); RunForm.BringToFront(); SettingsForm.MdiParent = this; SettingsForm.Show(); SettingsForm.BringToFront(); AnimatorForm.MdiParent = this; AnimatorForm.Show(); AnimatorForm.BringToFront(); GoogleEarthForm.MdiParent = this; GoogleEarthForm.Show(); GoogleEarthForm.BringToFront(); SettingsForm.BringToFront(); }
private void menuItemGoBack_Click(object sender, EventArgs e) { Form activeChild = this.ActiveMdiChild; if (activeChild == SettingsForm) { StartupForm.Show(); this.Hide(); } else if (activeChild == RunForm && RunForm.lblPercentage.Text.Contains("noise")) { CancelNoiseClick(); } else if (activeChild == RunForm && RunForm.lblPercentage.Text.Contains("preparing")) { CancelPreparation(); } else if (activeChild == AnimatorForm) { SettingsForm.BringToFront(); } else if (activeChild == GoogleEarthForm) { try { GoogleEarthForm.Dispose(); } catch (Exception ex) { } GoogleEarthForm = new GoogleEarthForm(); GoogleEarthForm.MdiParent = this; GoogleEarthForm.Show(); this.WindowState = FormWindowState.Normal; AnimatorForm.BringToFront(); } }
protected void VisualisationForm_FormClosing(object sender, FormClosingEventArgs e) { GoogleEarthForm.Dispose(); Application.Exit(); }
public void PreparationCalculationCompleted() { GoogleEarthForm.BringToFront(); GoogleEarthForm.Visualise("visualisation.kml"); }