public ActionSettings(DeviceManagementSettings root, XmlElement element) : base(root, element) { DeviceManagementSettings = root; LoadActions(); LoadParameters(); }
public MessageSettings(DeviceManagementSettings root, XmlElement element, String typeName = null) : base(root, element) { MessageId = NextMessageId++; DeviceManagementSettings = root; LoadElements(); }
public BlockSettings(DeviceManagementSettings root, XmlElement element, String typeName = null) : base(root, element) { RootSettings = root; LoadRegisters("register",(DeviceManagementSettings)RootSettings, settings, ref _RegisterList); LoadMessages(settings, ref _RegisterList); }
public ProtocolSettings(DeviceManagementSettings root, XmlElement element) : base(root, element) { DeviceManagementSettings = root; LoadConversations(); XmlElement serialport = GetElement("serialportsettings"); if (serialport == null) SerialPort = null; else SerialPort = new SerialPortSettings(root, serialport); }
public ConversationSettings(DeviceManagementSettings root, XmlElement element, String typeName = null) : base(root, element) { DeviceManagementSettings = root; LoadMessages(); }
//public InverterManagerSettings DeviceInverterManagerSettings { get; private set; } public ApplicationSettings() : base("settings_v2.xml", "configuration", @"\settings_template_SE_SQLite.xml") { LegacySettingsNames.Add("settings.xml"); LoadSettings(true); DeviceManagementSettings = new DeviceManagementSettings(); SystemServices = null; _InitialSave = new GenericSetting<bool>(true, this, "InitialSave"); _InitialCheck = new GenericSetting<bool>(true, this, "InitialCheck"); _ServiceAccountName = new GenericSetting<string>("Local Service", this, "ServiceAccountName"); _ServiceAccountPassword = new GenericSetting<string>("", this, "ServiceAccountPassword"); _ServiceAccountRequiresPassword = new GenericSetting<bool>(false, this, "ServiceAccountRequiresPassword"); _AutoStartPVBCService = new GenericSetting<bool>(true, this, "AutoStartPVBCService"); _Host = new GenericSetting<string>("", this, "Host"); _Database = new GenericSetting<string>("", this, "Database"); _DatabaseType = new GenericSetting<string>("", this, "DatabaseType"); _DatabaseVersion = new GenericSetting<string>("", this, "DatabaseVersion"); _ProviderType = new GenericSetting<string>("", this, "ProviderType"); _ProviderName = new GenericSetting<string>("", this, "ProviderName"); _OleDbName = new GenericSetting<string>("", this, "OleDbName"); _ConnectionString = new GenericSetting<string>("", this, "ConnectionString"); _UserName = new GenericSetting<string>("", this, "UserName"); _Password = new GenericSetting<string>("", this, "Password"); _DefaultDirectory = new GenericSetting<string>("", this, "DefaultDirectory"); _InverterLogs = new GenericSetting<string>("", this, "InverterLogs"); _ServiceSuspendType = new GenericSetting<string>("", this, "ServiceSuspendType"); _EveningSuspendType = new GenericSetting<string>("", this, "EveningSuspendType"); _ServiceStartTime = new GenericSetting<TimeSpan?>(this, "ServiceStartTime"); _ServiceStopTime = new GenericSetting<TimeSpan?>(this, "ServiceStopTime"); _WakeDelay = new GenericSetting<Int32>(0, this, "WakeDelay"); _IntervalStartTime = new GenericSetting<TimeSpan?>(this, "IntervalStartTime"); _IntervalStopTime = new GenericSetting<TimeSpan?>(this, "IntervalStopTime"); _InverterStartTime = new GenericSetting<TimeSpan?>(this, "InverterStartTime"); _InverterStopTime = new GenericSetting<TimeSpan?>(this, "InverterStopTime"); _MeterHistoryTimeLineAdjust = new GenericSetting<bool>(false, this, "MeterHistoryTimeLineAdjust"); _MeterHistoryStartMinute = new GenericSetting<Int32?>(this, "MeterHistoryStartMinute"); _MeterHistoryEndMinute = new GenericSetting<Int32?>(this, "MeterHistoryEndMinute"); _ServiceWakeInterval = new GenericSetting<TimeSpan?>(this, "ServiceWakeInterval"); _ServiceSuspendInterval = new GenericSetting<TimeSpan?>(this, "ServiceSuspendInterval"); _SunnyExplorerPlantName = new GenericSetting<string>("", this, "SunnyExplorerPlantName"); _FirstFullDay = new GenericSetting<DateTime?>(this, "FirstFullDay", DateStrings); _NewLogEachDay = new GenericSetting<bool>(true, this, "NewLogEachDay"); _LogRetainDays = new GenericSetting<int?>(this, "LogRetainDays"); _EnableIntervalSuspend = new GenericSetting<bool>(false, this, "EnableIntervalSuspend"); _EnableEveningSuspend = new GenericSetting<bool>(false, this, "EnableEveningSuspend"); _ManualSuspendAutoResume = new GenericSetting<bool>(false, this, "ManualSuspendAutoResume"); _EmitEvents = new GenericSetting<bool>(false, this, "EmitEvents"); _LogTrace = new GenericSetting<bool>(false, this, "LogTrace"); _LogDatabase = new GenericSetting<bool>(false, this, "LogDatabase"); _LogDetailTrace = new GenericSetting<bool>(false, this, "LogMeterTrace"); _LogMessageContent = new GenericSetting<bool>(false, this, "LogMessageContent"); _LogInformation = new GenericSetting<bool>(true, this, "LogInformation"); _LogStatus = new GenericSetting<bool>(true, this, "LogStatus"); _LogError = new GenericSetting<bool>(true, this, "LogError"); _LogFormat = new GenericSetting<bool>(true, this, "LogFormat"); _LogEvent = new GenericSetting<bool>(false, this, "LogEvent"); LoadSettingsSub(); ServiceAccountPassword = ""; ServiceDetailsChanged = false; LoadingEnergyEvents = false; CheckProtocolDeviceGroups(); _DatabaseVersions = new ObservableCollection<string>(); SelectDatabaseVersions(); }
public RegisterSettings(DeviceManagementSettings root, XmlElement element, String typeName = null) : base(root, element) { DeviceManagementSettings = root; }
internal static void LoadRegisters(string name, DeviceManagementSettings rootSettings, XmlElement parent, ref ObservableCollection<RegisterSettings> registerList) { registerList = new ObservableCollection<RegisterSettings>(); foreach (XmlNode e in parent.ChildNodes) { if (e.NodeType == XmlNodeType.Element && e.Name == name) { RegisterSettings register = new RegisterSettings((DeviceManagementSettings)rootSettings, (XmlElement)e); registerList.Add(register); } } }
public BlockMessageSettings(DeviceManagementSettings root, XmlElement element, String typeName = null) : base(root, element) { BlockSettings.LoadRegisters("register",(DeviceManagementSettings)RootSettings, settings, ref RegisterList); BlockSettings.LoadRegisters("registertemplate", (DeviceManagementSettings)RootSettings, settings, ref RegisterTemplateList); }
public AlgorithmSettings(DeviceManagementSettings root, XmlElement element, String typeName = null) : base(root, element) { DeviceManagementSettings = root; LoadActions(); }
public ParameterSettings(DeviceManagementSettings root, XmlElement element) : base(root, element) { DeviceManagementSettings = root; }