public ActionListBoxItem([NotNull] RulesPresenter rulesPresenter, [NotNull] XElement element, int index, bool isEditable) { Assert.ArgumentNotNull(rulesPresenter, nameof(rulesPresenter)); Assert.ArgumentNotNull(element, nameof(element)); InitializeComponent(); RulesPresenter = rulesPresenter; Element = element; Index = index; IsEditable = isEditable; Refresh(); }
public ConditionListBoxItem([NotNull] RulesPresenter rulesPresenter, [NotNull] XElement element, int index, bool isEditable) { Assert.ArgumentNotNull(rulesPresenter, nameof(rulesPresenter)); Assert.ArgumentNotNull(element, nameof(element)); InitializeComponent(); RulesPresenter = rulesPresenter; Element = element; Index = index; IsEditable = isEditable; OperatorId = element.GetAttributeValue("_operatorid"); Operator = element.GetAttributeValue("_operator"); Refresh(); }