private void TBHostName_TextChanged(object sender, TextChangedEventArgs e) { hostName = TBHostName.Text; localSettings.Values["HostName"] = hostName; ConnectToggle.IsEnabled = checkConfig(); }