private Setting ReadYaml() { var settingInfo = new Setting(); if (!File.Exists(yamlPath)) { MessageBox.Show("没有找到配置文件!"); return(null); } YamlHelper.SetFilePath(yamlPath); settingInfo = YamlHelper.Deserializer <Setting>(); return(settingInfo); }
private void SetYaml(Setting setting) { YamlHelper.Serializer(setting); }