Beispiel #1
0
        private void rbFirstTwo_And_rbLastTwo_CheckedChanged(object sender, EventArgs e)
        {
            RadioButton rb = sender as RadioButton;

            if (rb.Checked == false)
            {
                return;
            }

            string controlName = rb.Name;

            if (controlName == "rbFirstTwo")
            {
                mgr.UpdateForecastType(ForecastType.FirstTwo);
            }
            else if (controlName == "rbLastTwo")
            {
                mgr.UpdateForecastType(ForecastType.LastTwo);
            }
            else
            {
                MessageBox.Show("触发源的控件名称出现异常!");
                return;
            }
            RefreshAllUIData(mgr);
        }