private void StoreSettingsInAppStrings() { PluginAppSettings.SetString("Port", txtPort.Text); PluginAppSettings.SetString("PortEnabled", chkPortEnabled.Checked ? "True" : "False"); PluginAppSettings.SetString("SecurePort", txtSecurePort.Text); PluginAppSettings.SetString("SecurePortEnabled", chkSecurePortEnabled.Checked ? "True" : "False"); PluginAppSettings.SetString("SecondsBetweenRefresh", nudSecondsBetweenRefresh.Value.ToString()); PluginAppSettings.SetString("AutomaticUpdates", cmbAutomaticUpdates.SelectedItem.ToString() == "On" ? "True" : "False"); }
public void FirstTimeRunCheck() { if ((IsRunning.Item1 || port == -1) && (IsRunning.Item2 || secure_port == -1) && !PluginAppSettings.GetBoolean("NotFirstTimeRun")) { PluginAppSettings.SetString("NotFirstTimeRun", "True"); PluginAppSettings.Save(); if (IsRunning.Item1 || IsRunning.Item2) { if (MessageBox.Show(Resources.FirstTimeRun, Resources.ApplicationName + " First Time Run", MessageBoxButtons.OKCancel) == DialogResult.OK) { LaunchIndexPage(); } } } }
private void btnCheckForUpdates_Click(object sender, EventArgs e) { PluginAppSettings.SetString("AutomaticUpdates", "False"); PluginUpdate.Check(); }