Beispiel #1
0
        private void preferencesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            preferencesForm preferencesForm = new preferencesForm(this, preferencesFile);
            DialogResult    result          = preferencesForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                preferencesForm.preferences.WriteXml(preferencesFile);
            }
            preferencesForm.Dispose();

            loadPreferences();
            setMysqlConnection();
        }
Beispiel #2
0
        private void preferencesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            preferencesForm preferencesForm = new preferencesForm(this, preferencesFile);
            DialogResult result = preferencesForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                preferencesForm.preferences.WriteXml(preferencesFile);
            }
            preferencesForm.Dispose();

            loadPreferences();
            setMysqlConnection();
        }