private void btnFactores_Click(object sender, EventArgs e) { FactorList factorList = new FactorList(this.Iteration.Factors); factorList.ShowDialog(); if (factorList.Change) { this.Iteration.Factors = factorList.Factors; this.Iteration.EAF = factorList.Total; this.EAFTextBox.Text = factorList.Total.ToString(); } }
private void uMLIterationDataGridView_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex >= 0 && e.RowIndex >= 0) { if (this.uMLIterationDataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex] is DataGridViewButtonCell) { UMLIteration iteration = (UMLIteration)this.uMLIterationDataGridView.Rows[e.RowIndex].DataBoundItem; FactorList factorList = new FactorList(iteration.Factors); factorList.ShowDialog(); if (factorList.Change) { iteration.Factors = factorList.Factors; iteration.EAF = factorList.Total; iteration.SaveFactors(); } } } }