/// /// Copyright (c) 2020 Sensus Slovensko a.s. /// using log4net; namespace TBF.BenchControl.Various.Drawing.Bypass { public class Component : ComponentBase, SchematicDrawing.IDrawingItemCmpnt { private static readonly ILog log = LogManager.GetLogger(typeof(Component)); public override string ToString() { return string.Format("{0}({1})", ClassName, Cfg.ToString(-1)); } readonly Configuration myCfg; public SchematicDrawing.IDrawingItemCfg DrawingItemCfg { get { return myCfg as SchematicDrawing.IDrawingItemCfg; } } public Component() { } public Component(Generic.IComponentCfg cfg) : base(cfg) { myCfg = cfg as Configuration; log.Debug(this.ToString()); } } }