DataContainer components clean-up.

This commit is contained in:
Milan Hanajik
2021-04-02 20:25:31 +02:00
parent 1bc3e5d6eb
commit ce0b8af4a0
6 changed files with 42 additions and 38 deletions
+8 -7
View File
@@ -20,21 +20,22 @@ namespace TBF.Rig.DataContainer.Buoyancy
public double Buoyancy { get { return myCfg.Buoyancy; } }
public Component()
{
}
public Component() { }
public Component(Generic.IComponentCfg cfg)
: base(cfg)
{
myCfg = cfg as ComponentCfg;
/// This is to use data in formulas
Config.Data.Buoyancy = Buoyancy;
log.Warn(this.ToString());
}
public override void Initialize()
{
Config.Data.Buoyancy = Buoyancy; /// This is to use Buoyancy from this component in formulas
}
public IList<Config.CalendarEvent.ICalendarEvent> GetCalendarEvents()
{
DateTime calibrationDue = myCfg.CalibValidDate;