コード例 #1
0
        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
            };
        }
コード例 #2
0
        private void UpdateSectionResultRows()
        {
            if (rowUpdating)
            {
                return;
            }

            sectionResultRows.ForEachElementDo(row => row.Update());
            DataGridViewControl.RefreshDataGridView();

            UpdateAssemblyData();
        }
コード例 #3
0
 private void RefreshDataGrid()
 {
     DataGridViewControl.RefreshDataGridView(false);
 }
コード例 #4
0
 private void DeselectAllButton_Click(object sender, EventArgs e)
 {
     GetSelectableRows().ForEachElementDo(row => row.Selected = false);
     DataGridViewControl.RefreshDataGridView();
     UpdateDoForSelectedButton();
 }