예제 #1
0
        public void VisualiseTrajectory(Trajectory trajectory)
        {
            AnimatorForm.BringToFront();

            SettingsForm.txtTrajectoryFile.Text = "Optimisation result";
            //Trajectory = trajectory;
            VisualiseTrajectoryEvent(this, EventArgs.Empty);
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
 public void CancelPreparation()
 {
     AnimatorForm.BringToFront();
     CancelVisualisationPreparation(this, EventArgs.Empty);
 }
예제 #4
0
 public void NoiseCalculationCompleted()
 {
     AnimatorForm.BringToFront();
 }