1.1 --- a/GUI/MainForm.cs Sun Aug 04 06:54:46 2013 +0000
1.2 +++ b/GUI/MainForm.cs Sun Aug 11 21:26:56 2013 +0000
1.3 @@ -66,6 +66,9 @@
1.4 private UserOption runWebServer;
1.5 private HttpServer server;
1.6
1.7 + private UserOption logSensors;
1.8 + private Logger logger;
1.9 +
1.10 private bool selectionDragging = false;
1.11
1.12 public MainForm() {
1.13 @@ -277,6 +280,10 @@
1.14 server.StopHTTPListener();
1.15 };
1.16
1.17 + logSensors = new UserOption("logSensorsMenuItem", false, logSensorsMenuItem,
1.18 + settings);
1.19 + logger = new Logger(computer);
1.20 +
1.21 InitializePlotForm();
1.22
1.23 startupMenuItem.Visible = startupManager.IsAvailable;
1.24 @@ -500,6 +507,9 @@
1.25
1.26 if (wmiProvider != null)
1.27 wmiProvider.Update();
1.28 +
1.29 + if (logSensors.Value)
1.30 + logger.Log();
1.31 }
1.32
1.33 private void SaveConfiguration() {