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