private void InnerSetValue(string name, string value) { OptionsDataSet.OptionsRow optionsRow = FindRow(name); if (optionsRow == null) { this.Options.AddOptionsRow(name, value); } else { optionsRow.Value = value; } }
/// <summary> /// 根据Name获取Value /// </summary> /// <param name="name"></param> /// <returns></returns> public string GetValue(string name) { OptionsDataSet.OptionsRow optionsRow = FindRow(name); return(optionsRow == null ? string.Empty : optionsRow.Value); }