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

            MovableBedForm form = new MovableBedForm();

            if (DialogResult.OK == form.ShowDialog())
            {
                RiverSimulationProfile.profile.movableBedFinished = true;
            }
            UpdateStatus();
        }
Esempio n. 2
0
        private void movableBedBtn_Click(object sender, EventArgs e)
        {
            if(!RiverSimulationProfile.profile.IsMovableBedReady())
            {
                MessageBox.Show("請先完成前置設定", "警告", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

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