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);
            }
        }
Esempio n. 2
0
 void refreshVal(double pValue, string pCol)
 {
     if (_blockPoint.block())
     {
         try
         {
             ToolColumn.setColumnValue(_tableSchema, pCol, pValue);
         }
         finally
         {
             _blockPoint.unblock();
         }
     }
 }
Esempio n. 3
0
 public void unblock()
 {
     blockPoint.unblock();
     foreach (BlockPoint bp in listChildPoints)
     {
         bp.unblock();
     }
     foreach (WorkerStart wkr in listWork)
     {
         wkr.Invoke();
     }
 }