Files
tbf/TBF/BenchControl/Various/Drawing/Junction/Component.cs
T

26 lines
698 B
C#

///
/// Copyright (c) 2020 Sensus Slovensko a.s.
///
using log4net;
namespace TBF.BenchControl.Various.Drawing.Junction
{
public class Component : ComponentBase, SchematicDrawing.IDrawingItCmpnt
{
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.IDrawingItem DrawingItem { get { return myCfg as SchematicDrawing.IDrawingItem; } }
public Component() { }
public Component(Generic.IComponentCfg cfg)
: base(cfg)
{
myCfg = cfg as Configuration;
log.Debug(this.ToString());
}
}
}