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(); }
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(); }