public void UpdateEntries(List <string> args) { outputDirectory = new SettingsEntry(args.First(line => (line.StartsWith("OutputDir:"))).TrimStart("OutputDir:".ToCharArray())); sourceName = new SettingsEntry(args.First(line => (line.StartsWith("SourceName:"))).TrimStart("SourceName:".ToCharArray())); logName = new SettingsEntry(args.First(line => (line.StartsWith("LogName:"))).TrimStart("LogName:".ToCharArray())); thumbnailSize = new SettingsEntry(args.First(line => (line.StartsWith("ThumbnailSize:"))).TrimStart("ThumbnailSize:".ToCharArray())); }
public SettingsModel() { client = ClientTCP.getInstance(); if (client.isConnected) { ClientTCP.OnMessageReceived += UpdateHandlers; ClientTCP.OnMessageReceived += UpdateSettingsMap; outputDirectory = new SettingsEntry(null); sourceName = new SettingsEntry(null); logName = new SettingsEntry(null); thumbnailSize = new SettingsEntry(null); client.sendCommand(CommandEnum.GetConfigCommand.ToString()); } }