示例#1
0
        private void openButton_Click(object sender, System.EventArgs e)
        {
            OpenFileDialog saveDialog = new OpenFileDialog();


            saveDialog.Title  = "Open Settings";
            saveDialog.Filter = "Settings-File|*.set";


            if (saveDialog.ShowDialog() == DialogResult.OK && saveDialog.FileName != null)
            {
                reloadSettings(KeyValueStore.Load(saveDialog.FileName));
            }
        }