public bool ContractMatrixTask(int indexExpand)
 {
     return(WorkWithGridView.Contract(dataGridViewTaskCompare, indexExpand));
 }
 public bool UpdateValueCellTaskMatrix(int indexRow, int indexColumn, string cellValue)
 {
     return(WorkWithGridView.UpdateCellValue(dataGridViewTaskCompare, indexRow, indexColumn, cellValue));
 }
 public bool ExpandMatrixCompare(string nameNewElement)
 {
     return(WorkWithGridView.Expand(dataGridViewCompare, nameNewElement));
 }
 public bool UpdateOption(int indexRow, string optionNewName)
 {
     return(WorkWithGridView.UpdateRow(dataGridViewOptions, indexRow, optionNewName));
 }
 public bool DeleteOption(int indeDelitingOption)
 {
     return(WorkWithGridView.DeleteRow(dataGridViewOptions, indeDelitingOption));
 }
 public bool DeleteCriterion(int indexDelitingCriterion)
 {
     return(WorkWithGridView.DeleteRow(dataGridViewCriterions, indexDelitingCriterion));
 }
 public bool AddOption(string newOptionName)
 {
     return(WorkWithGridView.AddRow(dataGridViewOptions, newOptionName));
 }
 public bool AddCriterion(string nameNewCriterion)
 {
     return(WorkWithGridView.AddRow(dataGridViewCriterions, nameNewCriterion));
 }
 public bool UpdateCriterion(int indexRow, string criterionNewName)
 {
     return(WorkWithGridView.UpdateRow(dataGridViewCriterions, indexRow, criterionNewName));
 }
        private void dataGridViewCompare_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            string cellValue = WorkWithGridView.GetValue(dataGridViewCompare, e.RowIndex, e.ColumnIndex);

            _presenter.UpdateValueCellValueMatrixCompare(e.RowIndex, e.ColumnIndex, cellValue);
        }
        private void buttonDeleteCriterion_Click(object sender, EventArgs e)
        {
            int indexRow = WorkWithGridView.GetIndexSelectedRow(dataGridViewCriterions);

            _presenter.DeleteCriterion(indexRow);
        }
        private void dataGridViewCriterions_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            string cellValue = WorkWithGridView.GetValue(dataGridViewCriterions, e.RowIndex, e.ColumnIndex);

            _presenter.UpdateCriterion(e.RowIndex, cellValue);
        }
 public bool OuputCalculationsResult(string idealizedResult, string normalizedResult)
 {
     WorkWithGridView.UpdateCellValue(dataGridViewCalculationResult, 0, 0, idealizedResult);
     WorkWithGridView.UpdateCellValue(dataGridViewCalculationResult, 1, 0, normalizedResult);
     return(true);
 }
 public bool OuputVectorCalculations(List <string> column, string nameColumn)
 {
     return(WorkWithGridView.OutputColumn(dataGridViewCalculation, column, nameColumn, false));
 }
 public bool OuputMatrixCompare(DataTable table)
 {
     return(WorkWithGridView.OutputTable(dataGridViewCompare, table, true));
 }
 public bool OuputMatrixTask(DataTable table)
 {
     return(WorkWithGridView.OutputTable(dataGridViewTaskCompare, table));
 }