private void HandleNewSettings(string json) { // Parse the new settings. m_settings = Newtonsoft.Json.JsonConvert.DeserializeObject<GlowControlSettings>(json); m_settings.SaveSettings(); // Set the work time to something that will make it operate next time. m_nextCycleTimeMs = -10; m_userActionCycle = true; }
private void ProcessSettingsRecieved(string json) { // Parse the new settings. m_settings = Newtonsoft.Json.JsonConvert.DeserializeObject<GlowControlSettings>(json); // Update the UI UpdateUI(); // Inform the controller that the program list has changed. m_listener.OnEnabledProgramsChanged(); }