Пример #1
0
        public object Clone()
        {
            MonitoringCardConfig config = new MonitoringCardConfig(this);

            return(config);
        }
Пример #2
0
 private MonitoringCardConfig(MonitoringCardConfig config)
 {
     MonitoringEnable     = config.MonitoringEnable;
     ParameterConfigTable = config.ParameterConfigTable == null ? null : config.ParameterConfigTable.Select(item => (ParameterMonitoringConfig)item.Clone()).ToList();
 }
 public object Clone()
 {
     MonitoringCardConfig config = new MonitoringCardConfig(this);
     return config;
 }
Пример #4
0
        private LedMonitoringConfig(LedMonitoringConfig config)
        {
            SN = string.IsNullOrEmpty(config.SN) ? string.Empty : config.SN.Clone() as string;

            MonitoringCardConfig = config.MonitoringCardConfig == null ? null : config.MonitoringCardConfig.Clone() as MonitoringCardConfig;
        }
 private MonitoringCardConfig(MonitoringCardConfig config)
 {
     MonitoringEnable = config.MonitoringEnable;
     ParameterConfigTable = config.ParameterConfigTable == null ? null : config.ParameterConfigTable.Select(item => (ParameterMonitoringConfig)item.Clone()).ToList();
 }