Пример #1
0
        protected virtual void OnCollectModelLogics(CollectModelLogicsArgs e)
        {
            EventHandler <CollectModelLogicsArgs> handler = CollectModelLogics;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
        void AddModelLogics()
        {
            var collectModelLogicsArgs = new CollectModelLogicsArgs();

            OnCollectModelLogics(collectModelLogicsArgs);
            var modelLogics = collectModelLogicsArgs.ModelLogics.Where(modelLogic => !_modelLogics.Contains(modelLogic));

            foreach (var modelLogic in modelLogics)
            {
                _modelLogics.Add(modelLogic);
            }
        }
Пример #3
0
 protected virtual void OnCollectModelLogics(CollectModelLogicsArgs e) {
     EventHandler<CollectModelLogicsArgs> handler = CollectModelLogics;
     if (handler != null) handler(this, e);
 }
Пример #4
0
 void AddModelLogics() {
     var collectModelLogicsArgs = new CollectModelLogicsArgs();
     OnCollectModelLogics(collectModelLogicsArgs);
     var modelLogics = collectModelLogicsArgs.ModelLogics.Where(modelLogic => !_modelLogics.Contains(modelLogic));
     foreach (var modelLogic in modelLogics) {
         _modelLogics.Add(modelLogic);
     }
 }
Пример #5
0
 void LogicRuleCollectorOnCollectModelLogics(object sender, CollectModelLogicsArgs collectModelLogicsArgs)
 {
     ((LogicRuleCollector)sender).CollectModelLogics -= LogicRuleCollectorOnCollectModelLogics;
     collectModelLogicsArgs.ModelLogics.Add(GetModelLogic(_application.Model.Application));
 }
Пример #6
0
        protected virtual void OnCollectModelLogics(CollectModelLogicsArgs e)
        {
            EventHandler <CollectModelLogicsArgs> handler = CollectModelLogics;

            handler?.Invoke(this, e);
        }