2 using System.Collections.Generic;
6 namespace CecConfigGui.actions
8 class UpdateConfiguration : UpdateProcess
10 public UpdateConfiguration(ref LibCecSharp lib, LibCECConfiguration config)
16 public override void Process()
18 SendEvent(UpdateEventType.ProgressBar, 10);
19 SendEvent(UpdateEventType.StatusText, "Setting the new configuration");
21 Lib.SetConfiguration(Config);
23 SendEvent(UpdateEventType.ProgressBar, 100);
24 SendEvent(UpdateEventType.StatusText, "Ready.");
27 private LibCecSharp Lib;
28 private LibCECConfiguration Config;