/// <summary> /// Constructor for the singleton. /// </summary> private ImageWebModel() { this.ImageWebModelClient = Client.Client.Instance; if (ImageWebModelClient.Running()) { this.ImageWebModelClient.UpdateConstantly(); this.ImageWebModelClient.UpdateEvent += ConstUpdate; this.SendInitRequest(); this.configurations = Client.Configurations.Instance; } }
/// <summary> /// constructor. /// initialize the configuration params. /// </summary> public ConfigModel() { configurations = Client.Configurations.Instance; SourceName = configurations.SourceName; LogName = configurations.LogName; OutputDirectory = configurations.OutputDirectory; Handlers = new ObservableCollection<string>(); Handlers = configurations.Handlers; ThumbnailSize = configurations.TumbnailSize; this.ImageWebModelClient = Client.Client.Instance; this.ImageWebModelClient.UpdateEvent += ConstUpdate; }