Пример #1
0
        private void boundaryConditionsBtn_Click(object sender, EventArgs e)
        {
            if(!RiverSimulationProfile.profile.IsBoundaryConditionsReady())
            {
                MessageBox.Show("請先完成前置設定", "警告", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            BoundaryConditionsForm form = new BoundaryConditionsForm();
            if (DialogResult.OK == form.ShowDialog())
            {
                RiverSimulationProfile.profile.boundaryConditionsFinished = true;
            }
            UpdateStatus();
        }
Пример #2
0
        private void boundaryConditionsBtn_Click(object sender, EventArgs e)
        {
            if (!RiverSimulationProfile.profile.IsBoundaryConditionsReady())
            {
                MessageBox.Show("請先完成前置設定", "警告", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            BoundaryConditionsForm form = new BoundaryConditionsForm();

            if (DialogResult.OK == form.ShowDialog())
            {
                RiverSimulationProfile.profile.boundaryConditionsFinished = true;
            }
            UpdateStatus();
        }