コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }