Пример #1
0
        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
        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();
            }
        }