示例#1
0
        private void waterModelingBtn_Click(object sender, EventArgs e)
        {
            if (!RiverSimulationProfile.profile.IsWaterModelingReady())
            {
                MessageBox.Show("請先完成前置設定", "警告", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            WaterModelingForm form = new WaterModelingForm();

            if (DialogResult.OK == form.ShowDialog())
            {
                RiverSimulationProfile.profile.waterModelingFinished = true;
            }
            UpdateStatus();
        }
示例#2
0
        private void waterModelingBtn_Click(object sender, EventArgs e)
        {
            if(!RiverSimulationProfile.profile.IsWaterModelingReady())
            {
                MessageBox.Show("請先完成前置設定", "警告", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

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