public void SetParameter(UIElementDataListColumnDataRuleAbstract dataRule) { FormElementDataListColumnDataRulesDev.RelationEnumDev rule = dataRule as FormElementDataListColumnDataRulesDev.RelationEnumDev; if (rule == null) { Debug.Assert(false, "FormElementDataColumnDataRuleAbstract 参数不正确"); throw new ArgumentException(); } this.SelectedId = rule.EnumId; }
public UIElementDataListColumnDataRuleAbstract GetParameter() { FormElementDataListColumnDataRulesDev.RelationEnumDev dataRule = new FormElementDataListColumnDataRulesDev.RelationEnumDev(); dataRule.EnumId = this.SelectedId; return(dataRule); }