예제 #1
0
        /// ------------------------------------------------------------------------------------
        public void SaveValueForIndex(int index, string value)
        {
            value = (value != null ? value.Trim() : string.Empty);

            if (value == RowData[index].ValueAsString)
            {
                return;
            }

            value = _file.SetStringValue(RowData[index].FieldId, value);
            RowData[index].Value = value;

            _fieldGatherer.SuspendProcessing();
            _file.Save();
            _fieldGatherer.GatherFieldsForFileNow(_file.PathToAnnotatedFile);
            _fieldGatherer.ResumeProcessing(false);
        }
예제 #2
0
 public string SetStringValue(ComponentFile file, string key, string value)
 {
     return(file.SetStringValue(key, value));
 }