protected override void InitializeObservers() { base.InitializeObservers(); surfaceLineObserver = new RecursiveObserver <PipingSurfaceLineCollection, PipingSurfaceLine>(UpdateGenerateCalculationsButtonState, rpslc => rpslc) { Observable = FailureMechanism.SurfaceLines }; stochasticSoilModelsObserver = new Observer(() => { PrefillComboBoxListItemsAtColumnLevel(); UpdateComboBoxColumns(); UpdateGenerateCalculationsButtonState(); }) { Observable = FailureMechanism.StochasticSoilModels }; stochasticSoilProfileObserver = new RecursiveObserver <PipingStochasticSoilModelCollection, PipingStochasticSoilProfile>( () => DataGridViewControl.RefreshDataGridView(), ssmc => ssmc.SelectMany(ssm => ssm.StochasticSoilProfiles)) { Observable = FailureMechanism.StochasticSoilModels }; }
private void UpdateSectionResultRows() { if (rowUpdating) { return; } sectionResultRows.ForEachElementDo(row => row.Update()); DataGridViewControl.RefreshDataGridView(); UpdateAssemblyData(); }
private void RefreshDataGrid() { DataGridViewControl.RefreshDataGridView(false); }
private void DeselectAllButton_Click(object sender, EventArgs e) { GetSelectableRows().ForEachElementDo(row => row.Selected = false); DataGridViewControl.RefreshDataGridView(); UpdateDoForSelectedButton(); }