Example #1
0
        // Violates DRY - as method above is almost identical
        public bool we_should_skip(List <MCAction> mca_list, SVRow svr)
        {
            bool skip = false;

            foreach (MCAction mca in mca_list)
            {
                if (mca.get_action() is BaseConstraint)
                {
                    mca.doAction(svr);

                    // If the filter fails, skip this iteration.
                    if (
                        !(
                            (BaseConstraint)mca.get_action()
                            ).decision
                        )
                    {
                        skip = true;
                    }
                }
            }//foreach

            return(skip);
        }
Example #2
0
        }//findInDict

        // Add a row to the table data-structure
        public void addRow(SVRow row)
        {
            table.Add(row);
        }