Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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();
        }