示例#1
0
 public override string ToString()
 {
     return(String.Format("Command: {0} {1} {2}", FormatStrings.FormatPreciseTime(Time), this.GetType().ToString(), Injector)
            + (ToState ? "open" : "close") + ", target = " + Target.ToString());
 }
示例#2
0
 // Method required by ICommand
 public virtual void Report()
 {
     Trace.WriteLine(String.Format(
                         "Command: {0} {1}", FormatStrings.FormatPreciseTime(Time), ToString()));
 }