private void InsertCpuOccupiedSensor(string name, DateTime time, SensorType sensorType, bool isActive) { ProcessType processType = ProcessType.None; if (this.CpuTotalCheck.Checked) { processType = ProcessType.Total; } else if (this.CpuCurrentCheck.Checked) { processType = ProcessType.Current; } CpuSensorConfig cpuConfig = new CpuSensorConfig() { Name = name, MadeTime = time, SensorType = sensorType, IsActive = isActive, ProcessType = processType }; dbManager.dc.BaseSensorConfigs.InsertOnSubmit(cpuConfig); }
public CpuSensorConfigItem(CpuSensorConfig cpuSensor) : base(cpuSensor) { this.cpuSensor = cpuSensor; }