Esempio n. 1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            string testURL = txtServerURL.Text.Trim();

            if (testURL.StartsWith("http"))
            {
                settings.setValue("server_url", "\"" + testURL + "\"");
                settings.save();
                this.Close();
            }
            else
            {
                MessageBox.Show("Server URL must start with 'http'.");
            }
        }
 public void save()
 {
     settings.save();
 }