/// <summary>
        /// 从磁盘文件中加载配置信息到此实例
        /// </summary>
        public void Load(String filePath, Boolean isEncrypted = false)
        {
            Type type = this.GetType();

            ConfigManager.LoadConfigToObject(this, type, filePath, isEncrypted);
        }
        /// <summary>
        /// 保存此实例包含的配置信息到磁盘文件
        /// </summary>
        public void Save(String savePath, Boolean isEncrypt = false)
        {
            Type type = this.GetType();

            ConfigManager.SaveConfig(this, type, savePath, isEncrypt);
        }
Exemplo n.º 3
0
 private void _btnSaveHistory_Click(Object sender, EventArgs e)
 {
     ConfigManager.SaveConfig <ConnectionHistoryConfig>(this.HistoryConfig, ConnectionHistoryConfig.FilePath);
     MessageBox.Show(this, "已保存!", "提示");
 }