示例#1
0
 /// <summary>
 /// データを書き込む
 /// </summary>
 /// <param name="attribute"></param>
 /// <param name="value"></param>
 /// <param name="type"></param>
 /// <param name="attributeType"></param>
 public void DataWrite(string attribute, string value, DataWriteType type, DataAttributeType attributeType)
 {
     if (type == DataWriteType.add)
     {
         currentDataRow.AddData(attribute, value, attributeType);
     }
     else if (type == DataWriteType.replace)
     {
         currentDataRow.ReplaceData(attribute, value, attributeType);
     }
 }
示例#2
0
 public void ChangeCurrentDataRow(string key)
 {
     if (dataDic.ContainsKey(key))
     {
         currentDataRow = dataDic[key];
     }
     else
     {
         currentDataRow = new DataRowObject();
         currentDataRow.AddData("Key", key);
         dataDic.Add(key, currentDataRow);
         dataList.Add(currentDataRow);
     }
 }