Initialization of 30 components changed, done in Initialize( ).

This commit is contained in:
Milan Hanajik
2021-04-03 00:54:27 +02:00
parent cb1a66381f
commit a58fe1f997
30 changed files with 347 additions and 445 deletions
+4 -7
View File
@@ -31,8 +31,6 @@ namespace TBF.Rig.Output.FileWriters.Xml
Results.Entities.Batch batch;
bool abort;
public Writer() {}
@@ -40,10 +38,13 @@ namespace TBF.Rig.Output.FileWriters.Xml
: base(cfg)
{
writerCfg = cfg as WriterCfg;
ApplyConfig();
log.Warn(this.ToString());
}
public override void Initialize()
{
ApplyConfig();
}
void ApplyConfig()
{
@@ -254,8 +255,6 @@ namespace TBF.Rig.Output.FileWriters.Xml
/// Common items 1
foreach (var v in commonItems)
{
if (abort) return;
/// Fetch the item and strip color information
string itemText = v.Print(wm);
string[] texts = itemText.Split(new char[] { '|' });
@@ -267,8 +266,6 @@ namespace TBF.Rig.Output.FileWriters.Xml
/// Test items
foreach (var mtr in wm.RegularMeterTestRslts())
{
if (abort) return;
if ((mtr != null) && (mtr.Publish() == Config.Entities.Publish.Always))
{
wr.WriteLine(string.Format(" <{0}>", testTag));