ToString( ) methods of all components are equal, start with ClassName.

This commit is contained in:
Milan Hanajik
2021-04-07 22:18:53 +02:00
parent 3a8f9ea2e0
commit 56294bbffc
110 changed files with 135 additions and 296 deletions
@@ -11,10 +11,7 @@ namespace TBF.Rig.TestMethods.FlyingStart.Single
public class Component : ComponentBase, GenericDevices.ITestMethod
{
private static readonly ILog log = LogManager.GetLogger(typeof(Component));
public override string ToString()
{
return string.Format("{0}({1})", this.GetType().Namespace.Substring(8), Cfg.ToString(1));
}
public override string ToString() { return string.Format("{0}({1})", ClassName, Cfg.ToString(-1)); }
public bool CanTest(MetersKind meters) { return meters == MetersKind.Single; }
public bool DoTransitions() { return true; }