Beispiel #1
0
        public RowColumnsBindingBetweenTablesExp(DataTable tableS, DataTable tableD, string[] colS, string colD, string expresion, ConstMathOperation pOper, IRowValidator pValidator)
            : base(tableS, colS, colD, expresion, pValidator)
        {
            oper      = pOper;
            tableDest = tableD;

            tableSource.RowDeleted    += new DataRowChangeEventHandler(table_RowDeleted);
            tableSource.RowChanged    += new DataRowChangeEventHandler(table_RowChanged);
            tableSource.ColumnChanged += new DataColumnChangeEventHandler(table_ColumnChanged);
        }
Beispiel #2
0
        public RowColumnsBindingBetweenTablesExp(DataTable tableS, DataTable tableD, string colS, string colD, IRowValidator pValidator)
            : base(tableS, new string[] { colS }, colD, colS, pValidator)
        {
            oper      = ConstMathOperation.sum;
            tableDest = tableD;

            tableSource.RowDeleted    += new DataRowChangeEventHandler(table_RowDeleted);
            tableSource.RowChanged    += new DataRowChangeEventHandler(table_RowChanged);
            tableSource.ColumnChanged += new DataColumnChangeEventHandler(table_ColumnChanged);
        }