Ejemplo n.º 1
0
 private static string PlainTextTransaction(Transaction t, int n)
 {
     n++; //记录数据的层次
     var text = "";
     var countE = t.Evens.Count;
     var currentE = t.Evens;
     for (int i = 0; i < countE; i++)
     {
         var item = currentE[i];
         var textFormat= 
             item.BeginOrEnd? string.Format("**E**名称={0}:", item.Name):
             string.Format("**E**名称={0}({3}ms);描述信息={1};时间={2:HH:mm:ss ffff}。", item.Name, item.Description, item.Time, item.TimeSpanInMilliseconds);
         var evenText = PlainTextSpace(n) + textFormat;
         text = text + evenText + PlainTextEven(currentE[i], n);
     }
     return text;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 创建事务
 /// </summary>
 /// <param name="t"></param>
 public void NewTransaction(Transaction t)
 {
     Transactions.Add(t);
 }