コード例 #1
0
ファイル: Strategy.cs プロジェクト: hardborn/MonitorManager
        public object Clone()
        {
            ActionCommandElement element = new ActionCommandElement(this);

            return(element);
        }
コード例 #2
0
ファイル: Strategy.cs プロジェクト: hardborn/MonitorManager
 private Rule(Rule rule)
 {
     this.RuleCondition = rule.RuleCondition == null ? null : rule.RuleCondition.Clone() as ConditionElement;
     this.RuleAction    = rule.RuleAction == null ? null : rule.RuleAction.Clone() as       ActionCommandElement;
     // this.ParameterAlarmConfigList = config.ParameterAlarmConfigList == null ? null : config.ParameterAlarmConfigList.Select(T => (ParameterAlarmConfig)T.Clone()).ToList();
 }
コード例 #3
0
ファイル: Strategy.cs プロジェクト: hardborn/MonitorManager
 private ActionCommandElement(ActionCommandElement element)
 {
     this.ActionCommandCollection = element.ActionCommandCollection == null ? null : element.ActionCommandCollection.Select(T => (ActionCommand)T.Clone()).ToList();
 }