public void AddCellRule(int columnIndex, int rowIndex, MtTextBoxValidator.Data validatorData) { Rule r = new Rule(); r.TypeOfRule = Rule.RuleType.Cell; r.Value1 = columnIndex; r.Value2 = rowIndex; r.ValidatorData = (MtTextBoxValidator.Data)validatorData.Clone(); _rules.Add(r); }
public void AddRowRule(int firstRowIndex, int lastRowIndex, MtTextBoxValidator.Data validatorData) { Rule r = new Rule(); r.TypeOfRule = Rule.RuleType.Row; r.Value1 = firstRowIndex; r.Value2 = lastRowIndex; r.ValidatorData = (MtTextBoxValidator.Data)validatorData.Clone(); _rules.Add(r); }