Ejemplo n.º 1
0
        private void runSimulationBtn_Click(object sender, EventArgs e)
        {
            if (!RiverSimulationProfile.profile.IsRunSimulationReady())
            {
                String errStr = "尚有參數尚未完成:\r\n" +
                                "水理參數 - 物理參數尚未設定!";

                MessageBox.Show(errStr, "警告", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            RunSimulationForm form = new RunSimulationForm();

            if (DialogResult.OK == form.ShowDialog())
            {
            }

            RiverSimulationProfile.profile.runSimulationFinished = true;
            UpdateStatus();
        }
Ejemplo n.º 2
0
        private void runSimulationBtn_Click(object sender, EventArgs e)
        {
            if (!RiverSimulationProfile.profile.IsRunSimulationReady())
            {
                String errStr = "尚有參數尚未完成:\r\n" +
                                "水理參數 - 物理參數尚未設定!";

                MessageBox.Show(errStr, "警告", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            RunSimulationForm form = new RunSimulationForm();
            if (DialogResult.OK == form.ShowDialog())
            {

            }

            RiverSimulationProfile.profile.runSimulationFinished = true;
            UpdateStatus();
        }