public void addRelation(string[] pCols, ITableColumnChange pActivity, IBlockPoint pBlock, IRowValidator pValidator, ColumnChangeEventType pEvent) { pValidator = (pValidator == null) ? new RowValidatorTrue() : pValidator; try { blockPointMain.block(); for (int i = 0; i < tableTarget.Rows.Count; ++i) { DataRow row = tableTarget.Rows[i]; if (pValidator.check(row)) { pActivity.initForColumnChanged(row); } } } finally { blockPointMain.unblock(); } foreach (string col in pCols) { add(col, pActivity, pBlock, pValidator, pEvent); } }
void refreshVal(double pValue, string pCol) { if (_blockPoint.block()) { try { ToolColumn.setColumnValue(_tableSchema, pCol, pValue); } finally { _blockPoint.unblock(); } } }
public void unblock() { blockPoint.unblock(); foreach (BlockPoint bp in listChildPoints) { bp.unblock(); } foreach (WorkerStart wkr in listWork) { wkr.Invoke(); } }