Initialization of 30 components changed, done in Initialize( ).
This commit is contained in:
@@ -33,8 +33,6 @@ namespace TBF.Rig.Output.FileWriters.XmlBatch
|
||||
|
||||
Results.Entities.Batch batch;
|
||||
|
||||
bool abort;
|
||||
|
||||
|
||||
public Writer() {}
|
||||
|
||||
@@ -42,10 +40,13 @@ namespace TBF.Rig.Output.FileWriters.XmlBatch
|
||||
: base(cfg)
|
||||
{
|
||||
writerCfg = cfg as WriterCfg;
|
||||
ApplyConfig();
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
ApplyConfig();
|
||||
}
|
||||
|
||||
void ApplyConfig()
|
||||
{
|
||||
@@ -258,8 +259,6 @@ namespace TBF.Rig.Output.FileWriters.XmlBatch
|
||||
/// Common items
|
||||
foreach (var v in commonItems)
|
||||
{
|
||||
if (abort) return;
|
||||
|
||||
/// Fetch the item and strip color information
|
||||
string itemText = v.Print(batch.WaterMeters[0]);
|
||||
string[] texts = itemText.Split(new char[] { '|' });
|
||||
@@ -275,8 +274,6 @@ namespace TBF.Rig.Output.FileWriters.XmlBatch
|
||||
/// Meter items
|
||||
foreach (var v in meterItems)
|
||||
{
|
||||
if (abort) return;
|
||||
|
||||
/// Fetch the item and strip color information
|
||||
string itemText = v.Print(wm);
|
||||
string[] texts = itemText.Split(new char[] { '|' });
|
||||
@@ -288,8 +285,6 @@ namespace TBF.Rig.Output.FileWriters.XmlBatch
|
||||
/// 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));
|
||||
|
||||
Reference in New Issue
Block a user