public override string ToString() { string result = "[#0000]"; if (NoteType == NoteTypeInTmpUST.Next) { result = "[#NEXT]"; } else if (NoteType == NoteTypeInTmpUST.Prev) { result = "[#PREV]"; } else if (NoteType == NoteTypeInTmpUST.Delete) { result = "[#DELETE]"; } else if (NoteType == NoteTypeInTmpUST.Insert) { result = "[#INSERT]"; } int i, end = Datas.NoteProperty.Length; for (i = 0; i < end; ++i) { if (HasValue(Datas.NoteProperty[i])) { result += Functs.NextLine(Datas.NoteProperty[i] + "=" + GetValue(Datas.NoteProperty[i]).ToString()); } } return(result); }
public override string ToString() { string result = "[#VERSION]"; result += Functs.NextLine(Version); int i, end = Datas.USTVersionProperty.Length; result += Functs.NextLine("[#SETTING]"); end = Datas.USTSettingProperty.Length; for (i = 0; i < end; ++i) { if (HasValue(Datas.USTSettingProperty[i])) { result += Functs.NextLine(Datas.USTSettingProperty[i] + "=" + GetValue(Datas.USTSettingProperty[i]).ToString()); } } end = _Notes.Count; for (i = 0; i < end; ++i) { result += Functs.NextLine(_Notes[i].ToString()); } return(result); }