private void HandleState() { // Get changes in user input m_bUseOpenDNS = m_StatusPanel.UseOpenDNS; m_bUseDNSCrypt = m_StatusPanel.UseDNSCrypt; m_bUseDNSCryptTCP = m_StatusPanel.UseDNSCryptTCP; m_bUseInsecure = m_StatusPanel.UseInsecure; // Tell service what users wants m_TimedEventManager.SetDesiredState(m_bUseDNSCrypt, m_bUseDNSCryptTCP, m_bUseOpenDNS, m_bUseInsecure); }