private void btnOk_Click(object sender, EventArgs e)
        {
            List <Variable> variables = new List <Variable>();

            foreach (DataGridViewRow row in uiDataGridView_Variables.Rows)
            {
                if (Convert.ToBoolean(row.Cells[uiDataGridViewColumn_VariableCheck.Name].Value))
                {
                    variables.Add((Variable)row.DataBoundItem);
                }
            }

            bool check = presenter.checkInput(variables, selectedDataSet(), rdbMean.Checked, rdbMedian.Checked);

            if (check)
            {
                Close();
            }
        }
Example #2
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            List <Variable> variables = new List <Variable>();

            foreach (DataGridViewRow row in uiDataGridView_Variables.Rows)
            {
                if (Convert.ToBoolean(row.Cells[uiDataGridViewColumn_VariableCheck.Name].Value))
                {
                    variables.Add((Variable)row.DataBoundItem);
                }
            }

            bool check = presenter.checkInput(variables, selectedDataSet(), rdbMean.Checked, rdbMedian.Checked, rdbCustomValue.Checked, uiTextBox_CustomCutoffValue.Text);

            if (check)
            {
                Close();
                Globals.ExcelAddIn.Application.ActiveWindow.Activate();
            }
        }