예제 #1
0
        private void InsertOmapSensor(string name, DateTime time, SensorType sensorType, bool isActive)
        {
            OmapType type;

            Enum.TryParse <OmapType>(OmapTypeComboBox.SelectedValue.ToString(), out type);
            OmapSensorConfig omapConfig = new OmapSensorConfig()
            {
                Name       = name,
                MadeTime   = time,
                SensorType = sensorType,
                IsActive   = isActive,
                Ip         = this.OmapIpText.Text,
                OmapType   = type
            };

            dbManager.dc.BaseSensorConfigs.InsertOnSubmit(omapConfig);
        }
 public OmapSensorConfigItem(OmapSensorConfig omapSensor)
     : base(omapSensor)
 {
     this.omapSensor = omapSensor;
 }