コード例 #1
0
        public void Export()
        {
            var dlg = new SaveFileDialog
            {
                DefaultExt = "coab",
                FileName   = "Settings.coab"
            };

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                Dictionary <string, object> dictionary = settingsStore.GetPropertyNames(collectionPath)
                                                         .ToDictionary(s => s, s => Get(s));
                dictionary.BinarySerialize(dlg.FileName);
            }
        }