Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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();
                    }
                }
            }
        }
Exemplo n.º 3
0
        private void btnCheckForUpdates_Click(object sender, EventArgs e)
        {
            PluginAppSettings.SetString("AutomaticUpdates", "False");

            PluginUpdate.Check();
        }