コード例 #1
0
ファイル: CheckupForm.cs プロジェクト: geab/forlabv2-beta
        private void butCalculate_Click(object sender, EventArgs e)
        {
            if (DialogResult.No == MessageBox.Show("Are you sure you want to do calculation", "Data Model Calculation", MessageBoxButtons.YesNo, MessageBoxIcon.Question))
            {
                return;
            }

            try
            {
                FrmProgress frm = new FrmProgress(_forecast, _invAssumption);
                frm.InitializeTimer();
                frm.ShowDialog();

                MorbidityForm.LoadForecastResult();
            }
            catch (Exception ex)
            {
                new FrmShowError(CustomExceptionHandler.ShowExceptionText("There is an error to complete the forecast. See below for detail.", ex)).ShowDialog();
            }
        }
コード例 #2
0
ファイル: CheckupForm.cs プロジェクト: opianHealth/ForLAB
        private void butCalculate_Click(object sender, EventArgs e)
        {
            if (DialogResult.No == MessageBox.Show("Are you sure you want to do calculation", "Data Model Calculation", MessageBoxButtons.YesNo, MessageBoxIcon.Question))
                return;

            try
            {
                FrmProgress frm = new FrmProgress(_forecast, _invAssumption);
                frm.InitializeTimer();
                frm.ShowDialog();

                MorbidityForm.LoadForecastResult();
            }
            catch(Exception ex)
            {
                new FrmShowError(CustomExceptionHandler.ShowExceptionText("There is an error to complete the forecast. See below for detail.", ex)).ShowDialog();
            }
        }