Ejemplo n.º 1
0
        private void uiButton_Ok_Click(object sender, EventArgs e)
        {
            bool inputOk = presenter.checkInput(rdbAllObservations.Checked, rdbObservationsInRange.Checked, selectedDataSet(), uiTextBox_StopIndex.Text, uiTextBox_StartIndex.Text, rdbPlotAllObservations.Checked, rdbPlotOnlyObservationsWithin.Checked, uiTextbox_PlotStopIndex.Text, uiTextbox_PlotStartIndex.Text);

            if (inputOk)
            {
                Close();
                Globals.ExcelAddIn.Application.ActiveWindow.Activate();
            }
        }
Ejemplo n.º 2
0
        private void uiButton_Ok_Click(object sender, EventArgs e)
        {
            List <Variable> variablesX = new List <Variable>();
            List <Variable> variablesY = new List <Variable>();

            foreach (DataGridViewRow row in uiDataGridView_Variables.Rows)
            {
                if (Convert.ToBoolean(row.Cells[uiDataGridViewColumn_VariableCheckX.Name].Value))
                {
                    variablesX.Add((Variable)row.DataBoundItem);
                }
                if (Convert.ToBoolean(row.Cells[uiDataGridViewColumn_VariableCheckY.Name].Value))
                {
                    variablesY.Add((Variable)row.DataBoundItem);
                }
            }
            bool inputOk = presenter.checkInput(variablesX, variablesY, radioButton2.Checked, rdbAllObservations.Checked, rdbObservationsInRange.Checked, selectedDataSet(), uiTextBox_StopIndex.Text, uiTextBox_StartIndex.Text, rdbPlotAllObservations.Checked, rdbPlotOnlyObservationsWithin.Checked, uiTextbox_PlotStopIndex.Text, uiTextbox_PlotStartIndex.Text);

            if (inputOk)
            {
                Close();
            }
        }