private void initialConditionsBtn_Click(object sender, EventArgs e) { if (!RiverSimulationProfile.profile.IsInitialConditionsReady()) { MessageBox.Show("請先完成前置設定", "警告", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } InitialConditionsForm form = new InitialConditionsForm(); if (DialogResult.OK == form.ShowDialog()) { RiverSimulationProfile.profile.initialConditionsFinished = true; } UpdateStatus(); }
private void initialConditionsBtn_Click(object sender, EventArgs e) { if(!RiverSimulationProfile.profile.IsInitialConditionsReady()) { MessageBox.Show("請先完成前置設定", "警告", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } InitialConditionsForm form = new InitialConditionsForm(); if (DialogResult.OK == form.ShowDialog()) { RiverSimulationProfile.profile.initialConditionsFinished = true; } UpdateStatus(); }