diff --git a/TestBenchFramework/BenchControl/ResultsWriters/Basic/Writer.cs b/TestBenchFramework/BenchControl/ResultsWriters/Basic/Writer.cs
deleted file mode 100644
index 1bcdd27a6..000000000
--- a/TestBenchFramework/BenchControl/ResultsWriters/Basic/Writer.cs
+++ /dev/null
@@ -1,368 +0,0 @@
-///
-/// Copyright (c) 2013-2015 Sensus Metering Systems
-///
-using System;
-using System.Collections.Generic;
-using System.IO;
-using log4net;
-using Config.Entities;
-using TBF.BenchControl;
-using TBF.Resources;
-
-namespace TBF.BenchControl.ResultsWriters.Basic
-{
- public class Writer : ComponentBase, IOperation, GenericDevices.IResultsWriter
- {
- private static readonly ILog log = LogManager.GetLogger(typeof(Writer));
- public override string ToString() { return string.Format("ResultsWriters.Basic({0})", Cfg.ToString(1)); }
-
- readonly WriterCfg writerCfg;
- readonly string separatorStr;
-
- ///
- /// Result items to print
- ///
- IList rsltItems;
-
- ///
- /// Results to print
- ///
- Results.Entities.Batch batch;
-
- StreamWriter writer;
-
-
- public Writer() {}
-
- public Writer(WriterCfg cfg)
- : base(cfg)
- {
- writerCfg = cfg;
-
- switch (cfg.Separator)
- {
- default:
- case Separator.None: separatorStr = string.Empty; break;
- case Separator.Space: separatorStr = " "; break;
- case Separator.Tabulator: separatorStr = "\t"; break;
- case Separator.Comma: separatorStr = ","; break;
- case Separator.Semicolon: separatorStr = ";"; break;
- }
-
- log.Debug(this.ToString());
- }
-
-
- ///
- /// Eliminate spaces conditionally, depesing on bool WriterCfg.EliminateSpaces
- ///
- /// Input string
- /// Output string
- string ElSpaces(string item)
- {
- if (writerCfg.EliminateSpaces)
- return item.Replace(" ", string.Empty);
- else
- return item;
- }
-
-
- ///
- /// Returns a file name derived from a DateTime structure.
- /// Creates directories on this path as a side effect.
- ///
- /// Date and time
- /// File name
- string GetFilename(DateTime time)
- {
- string directory = writerCfg.DestinationPath; /// Ends with "\\";
- Directory.CreateDirectory(directory);
-
- if (writerCfg.YearFolders)
- {
- directory = string.Format("{0}{1}\\", directory, time.Year.ToString());
- Directory.CreateDirectory(directory);
- }
-
- if (writerCfg.MonthFolders)
- {
- string monthStr /* = now.Month.ToString("D2")*/;
- switch (time.Month)
- {
- default:
- case 1: monthStr = "January"; break;
- case 2: monthStr = "February"; break;
- case 3: monthStr = "March"; break;
- case 4: monthStr = "April"; break;
- case 5: monthStr = "May"; break;
- case 6: monthStr = "June"; break;
- case 7: monthStr = "July"; break;
- case 8: monthStr = "August"; break;
- case 9: monthStr = "September"; break;
- case 10: monthStr = "October"; break;
- case 11: monthStr = "November"; break;
- case 12: monthStr = "December"; break;
- }
- directory = string.Format("{0}{1}\\", directory, monthStr);
- Directory.CreateDirectory(directory);
- }
-
- if (writerCfg.DayFolders)
- {
- directory = string.Format("{0}{1}\\", directory, time.Day.ToString("D2"));
- Directory.CreateDirectory(directory);
- }
-
- return string.Format("{0}{1}{2}{3}-{4}{5}.txt", directory, (time.Year % 100).ToString("D2"),
- time.Month.ToString("D2"), time.Day.ToString("D2"), time.Hour.ToString("D2"), time.Minute.ToString("D2"));
- }
-
- ///
- /// Writes the test cycle results into a file, Events: Event.ResultsWritten
- ///
- /// Procedure to print the results of
- /// Results to write into the file
- /// Reference to the operation
- public IOperation WriteResultsOp(Results.Entities.Batch batchResults)
- {
- this.batch = batchResults;
-
- if (batch.WaterMeters.Count <= 0)
- {
- writer = null;
- return this;
- }
-
- if (batch.Compound == false)
- {
- rsltItems = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Printer_SingleWM);
- }
- else
- {
- rsltItems = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Printer_CombinedWM);
- }
-
- try
- {
- writer = new StreamWriter(System.IO.File.Create(GetFilename(batch.EndTime)));
- }
- catch
- {
- writer = null;
- }
-
- return this;
- }
-
- /// Start this operation
- public void Start()
- {
- if (writer == null) return;
-
- ///----------
- /// Header
- ///----------
- writer.WriteLine(batch.ProtocolTitle);
- writer.WriteLine(string.Empty);
-
- string[] leftColumn = new string[]
- {
- "Batch number: ",
- "Date and time: ",
- "Procedure:",
- Strings.User_,
- "Ambient temperature: ",
- "Ambient pressure: ",
- "Ambient humidity: ",
- };
-
- string[] rightColumn = new string[]
- {
- batch.BatchNr.ToString(),
- //batch.EndTime.ToShortDateString() + " " + batch.EndTime.ToShortTimeString(),
- string.Format("{0}.{1}.{2} {3}:{4}", batch.EndTime.Year.ToString("D4"),
- batch.EndTime.Month.ToString("D2"),
- batch.EndTime.Day.ToString("D2"),
- batch.EndTime.Hour.ToString("D2"),
- batch.EndTime.Minute.ToString("D2")),
- batch.ProcedureName,
- batch.UserName,
- batch.AmbientTempAve().ToString("F1") + " °C",
- batch.AmbientPressAve().ToString("F0") + " mbar",
- batch.AmbientHumiAve().ToString("F0") + " %",
- };
-
- /// Determine max. left column width in characters
- int maxLen = 0;
- foreach (var s in leftColumn) if (s.Length > maxLen) maxLen = s.Length;
-
- /// Write aligned columns
- for (int i = 0; i < Math.Min(leftColumn.Length, rightColumn.Length); i++)
- {
- writer.Write(leftColumn[i]);
- writer.Write(new string(' ', maxLen - leftColumn[i].Length + 3));
- writer.WriteLine(rightColumn[i]);
- }
- writer.WriteLine(string.Empty);
-
-
- ///--------
- /// Body
- ///--------
- foreach (var wm in batch.WaterMeters) WriteWM(wm);
- }
-
- ///
- /// Write one water meter results
- ///
- /// Water meter number (0-based)
- void WriteWM(Results.Entities.WaterMeter wm)
- {
- /// Determine column widths
- int[] columnWidths = new int[rsltItems.Count];
- int totalWidth = 0;
- for (int i = 0; i < rsltItems.Count; i++)
- {
- columnWidths[i] = ElSpaces(rsltItems[i].ClmnHeaderText).Length;
- foreach (var mtr in wm.MeterTestRslts)
- {
- if ((mtr != null) && (mtr.Publish() == Config.Entities.Publish.Always))
- {
- string itemText;
-
- if (!wm.Compound())
- {
- /// Single water meter
- itemText = rsltItems[i].Print(mtr);
- }
- else if (mtr.CompoundMeterId == (byte)CompoundMeterId.Compound)
- {
- Results.Entities.MeterTestRslt mainMtr = wm.GetMeterTestRslt(mtr.Name(), CompoundMeterId.CompoundMain);
- Results.Entities.MeterTestRslt auxMtr = wm.GetMeterTestRslt(mtr.Name(), CompoundMeterId.CompoundAux);
- itemText = rsltItems[i].PrintCombined(mainMtr, auxMtr, mtr);
- }
- else
- {
- continue;
- }
-
- /// Strip color information
- string[] texts = itemText.Split(new char[] { '|' });
- if (texts.Length == 2) { itemText = texts[0]; }
-
- int len = ElSpaces(itemText).Length;
- if (len > columnWidths[i]) columnWidths[i] = len;
- }
- }
- totalWidth += columnWidths[i];
- }
- totalWidth += 3 * (rsltItems.Count - 1);
- if (totalWidth < 0) totalWidth = 0;
-
-
- /// Write water meter number and s/n
- writer.Write(string.Format("Water meter {0}", wm.WMPosition));
- if (!string.IsNullOrEmpty(wm.SerialNr)) writer.Write(string.Format(" s/n: {0}", wm.SerialNr));
- writer.WriteLine(string.Empty);
-
-
- writer.WriteLine(new String('-', totalWidth)); /// Horizontal line above the header
-
-
- /// Write column headers
- for (int i = 0; i < rsltItems.Count; i++)
- {
- writer.Write(ElSpaces(rsltItems[i].ClmnHeaderText));
-
- if (i < rsltItems.Count - 1)
- {
- if (!writerCfg.EliminateSpaces)
- {
- writer.Write(new string(' ', columnWidths[i] - rsltItems[i].ClmnHeaderText.Length + 3));
- }
- writer.Write(separatorStr);
- }
- else
- {
- writer.WriteLine(string.Empty);
- }
- }
-
-
- writer.WriteLine(new String('-', totalWidth)); /// Horizontal line between the header and the body
-
-
- /// Write table data
- foreach (var mtr in wm.MeterTestRslts)
- {
- if ((mtr != null) && (mtr.Publish() == Config.Entities.Publish.Always))
- {
- for (int i = 0; i < rsltItems.Count; i++)
- {
- string itemText;
-
- ///
- /// Fetch an item
- ///
- if (!wm.Compound())
- {
- /// Single water meter
- itemText = rsltItems[i].Print(mtr);
- }
- else if (mtr.CompoundMeterId == (byte)CompoundMeterId.Compound)
- {
- Results.Entities.MeterTestRslt mainMtr = wm.GetMeterTestRslt(mtr.Name(), CompoundMeterId.CompoundMain);
- Results.Entities.MeterTestRslt auxMtr = wm.GetMeterTestRslt(mtr.Name(), CompoundMeterId.CompoundAux);
- itemText = rsltItems[i].PrintCombined(mainMtr, auxMtr, mtr);
- }
- else
- {
- continue;
- }
-
- ///
- /// Print the item
- ///
- string[] texts = itemText.Split(new char[] { '|' });
- if (texts.Length == 2) { itemText = texts[0]; } /// Strip color information
-
- writer.Write(ElSpaces(itemText));
-
- if (i < rsltItems.Count - 1)
- {
- if (!writerCfg.EliminateSpaces)
- {
- writer.Write(new string(' ', columnWidths[i] - itemText.Length + 3));
- }
- writer.Write(separatorStr);
- }
- else
- {
- writer.WriteLine(string.Empty);
- }
- }
- }
- }
-
- writer.WriteLine(new String('-', totalWidth)); /// Horizontal line below the body
-
- writer.WriteLine(string.Empty);
- }
-
-
- /// Run this operation
- /// Event.ResultsWritten
- public Event Run()
- {
- return Event.ResultsWritten;
- }
-
-
- /// Stop this operation
- public void Stop()
- {
- if (writer != null) writer.Close();
- writer = null;
- }
- }
-}
diff --git a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfg.cs b/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfg.cs
deleted file mode 100644
index 431193e30..000000000
--- a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfg.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-///
-/// Copyright (c) 2013-2015 Sensus Metering Systems
-///
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Xml.Serialization;
-using TBF.BenchControl.Generic;
-
-namespace TBF.BenchControl.ResultsWriters.Basic
-{
- public enum Separator
- {
- None,
- Space,
- Tabulator,
- Comma,
- Semicolon,
- Count
- }
-
- public class WriterCfg : ComponentCfgBase, Generic.IComponentCfg
- {
- public IComponent GetComponent(IList components) { return new Writer(this); }
- public IComponentCfgCtrl GetControl() { return new WriterCfgCtrl(); }
-
-
- public string DestinationPath; /// Directory path into which the results will be saved
- public bool YearFolders;
- public bool MonthFolders;
- public bool DayFolders;
- public Separator Separator;
- public bool EliminateSpaces;
-
-
- /// Private parameterless constructor invoked by all other (public) constructors
- WriterCfg()
- {
- Name = "BasicResultsWriter";
- ParentName = string.Empty;
- DestinationPath = Program.HomeDir + "Results\\";
- YearFolders = true;
- MonthFolders = true;
- DayFolders = false;
- Separator = Separator.None;
- EliminateSpaces = false;
- }
-
- public WriterCfg(IComponentFactory factory)
- : this()
- {
- this.Factory = factory;
- }
-
- public string ToString(int i)
- {
- return string.Format("Name={0}, Path={1}, Y={2}, M={3}, D={4}, Elim.Spaces={5}, Separator={6}",
- Name,
- DestinationPath,
- YearFolders,
- MonthFolders,
- DayFolders,
- EliminateSpaces,
- Separator);
- }
- }
-}
diff --git a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfgCtrl.cs b/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfgCtrl.cs
deleted file mode 100644
index 07704be45..000000000
--- a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfgCtrl.cs
+++ /dev/null
@@ -1,138 +0,0 @@
-///
-/// Copyright (c) 2013-2015 Sensus Metering Systems
-///
-using System;
-using System.Windows.Forms;
-using log4net;
-using TBF.BenchControl.Generic;
-
-namespace TBF.BenchControl.ResultsWriters.Basic
-{
- public partial class WriterCfgCtrl : UserControl, IComponentCfgCtrl
- {
- static readonly ILog log = LogManager.GetLogger(typeof(WriterCfgCtrl));
-
- public bool ShowMore { get { return false; } }
-
- WriterCfg config;
- public IComponentCfg Config
- {
- get { return config as IComponentCfg; }
- set
- {
- config = value as WriterCfg;
- Redraw();
- }
- }
-
- public WriterCfgCtrl()
- {
- InitializeComponent();
- }
-
- private void WriterCfgCtrl_Load(object sender, EventArgs e)
- {
- for (int i = 0; i < (int)Separator.Count; i++)
- {
- separatorComboBox.Items.Add(((Separator)i).ToString());
- }
- Redraw();
- }
-
- public void Closing()
- {
- }
-
- void Redraw()
- {
- if (config == null) return; /// Control was not loaded, settings were not changed
- classNameLabel.Text = config.Factory.ClassName;
- nameTextBox.Text = config.Name;
- destinationTextBox.Text = config.DestinationPath;
- yearFoldersCheckBox.Checked = config.YearFolders;
- monthFoldersCheckBox.Checked = config.MonthFolders;
- dayFoldersCheckBox.Checked = config.DayFolders;
- separatorComboBox.Text = config.Separator.ToString();
- eliminateSpacesCheckBox.Checked = config.EliminateSpaces;
- }
-
- public void Unlock()
- {
- nameTextBox.Enabled = true;
- destinationTextBox.Enabled = true;
- destinationButton.Enabled = true;
- yearFoldersCheckBox.Enabled = true;
- monthFoldersCheckBox.Enabled = true;
- dayFoldersCheckBox.Enabled = true;
- separatorComboBox.Enabled = true;
- eliminateSpacesCheckBox.Enabled = true;
- }
-
- public CfgUpdateFlags VerifyCfg(ref string message)
- {
- CfgUpdateFlags flags = CfgUpdateFlags.None;
-
- if (!separatorComboBox.Items.Contains(separatorComboBox.Text))
- {
- flags |= CfgUpdateFlags.Error;
- message += Environment.NewLine + "Invalid separator";
- }
- return flags;
- }
-
- public CfgUpdateFlags UpdateCfg()
- {
- CfgUpdateFlags flags = CfgUpdateFlags.None;
-
- if (config == null) return CfgUpdateFlags.Error; /// Control was not loaded, settings were not changed
-
- if (config.Name != nameTextBox.Text) { config.Name = nameTextBox.Text; flags = CfgUpdateFlags.RestartRqrd; }
-
- if (config.DestinationPath != destinationTextBox.Text)
- {
- config.DestinationPath = destinationTextBox.Text;
- if (!config.DestinationPath.EndsWith("\\")) config.DestinationPath += "\\";
- flags = CfgUpdateFlags.RestartRqrd;
- }
-
- if (yearFoldersCheckBox.Checked != config.YearFolders)
- {
- config.YearFolders = yearFoldersCheckBox.Checked;
- flags = CfgUpdateFlags.RestartRqrd;
- }
- if (monthFoldersCheckBox.Checked != config.MonthFolders)
- {
- config.MonthFolders = monthFoldersCheckBox.Checked;
- flags = CfgUpdateFlags.RestartRqrd;
- }
- if (dayFoldersCheckBox.Checked != config.DayFolders)
- {
- config.DayFolders = dayFoldersCheckBox.Checked;
- flags = CfgUpdateFlags.RestartRqrd;
- }
-
- for (int i = 0; i < (int)Separator.Count; i++)
- {
- if (((Separator)i).ToString().Equals(separatorComboBox.Text) && (config.Separator != (Separator)i))
- {
- config.Separator = (Separator)i;
- flags = CfgUpdateFlags.RestartRqrd;
- break;
- }
- }
-
- if (eliminateSpacesCheckBox.Checked != config.EliminateSpaces)
- {
- config.EliminateSpaces = eliminateSpacesCheckBox.Checked;
- flags = CfgUpdateFlags.RestartRqrd;
- }
-
- return flags;
- }
-
- private void destinationButton_Click(object sender, EventArgs e)
- {
-
- }
- }
-}
diff --git a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfgCtrl.designer.cs b/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfgCtrl.designer.cs
deleted file mode 100644
index ca3c43308..000000000
--- a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfgCtrl.designer.cs
+++ /dev/null
@@ -1,203 +0,0 @@
-///
-/// Copyright (c) 2013-2015 Sensus Metering Systems
-///
-namespace TBF.BenchControl.ResultsWriters.Basic
-{
- partial class WriterCfgCtrl
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.nameTextBox = new System.Windows.Forms.TextBox();
- this.nameLabel = new System.Windows.Forms.Label();
- this.classNameLabel = new System.Windows.Forms.Label();
- this.destinationTextBox = new System.Windows.Forms.TextBox();
- this.destinationLabel = new System.Windows.Forms.Label();
- this.dayFoldersCheckBox = new System.Windows.Forms.CheckBox();
- this.destinationButton = new System.Windows.Forms.Button();
- this.yearFoldersCheckBox = new System.Windows.Forms.CheckBox();
- this.monthFoldersCheckBox = new System.Windows.Forms.CheckBox();
- this.eliminateSpacesCheckBox = new System.Windows.Forms.CheckBox();
- this.separatorLabel = new System.Windows.Forms.Label();
- this.separatorComboBox = new System.Windows.Forms.ComboBox();
- this.SuspendLayout();
- //
- // nameTextBox
- //
- this.nameTextBox.Enabled = false;
- this.nameTextBox.Location = new System.Drawing.Point(110, 39);
- this.nameTextBox.Name = "nameTextBox";
- this.nameTextBox.Size = new System.Drawing.Size(146, 20);
- this.nameTextBox.TabIndex = 2;
- //
- // nameLabel
- //
- this.nameLabel.AutoSize = true;
- this.nameLabel.Location = new System.Drawing.Point(19, 42);
- this.nameLabel.Name = "nameLabel";
- this.nameLabel.Size = new System.Drawing.Size(35, 13);
- this.nameLabel.TabIndex = 1;
- this.nameLabel.Text = "Name";
- //
- // classNameLabel
- //
- this.classNameLabel.AutoSize = true;
- this.classNameLabel.Location = new System.Drawing.Point(107, 15);
- this.classNameLabel.Name = "classNameLabel";
- this.classNameLabel.Size = new System.Drawing.Size(83, 13);
- this.classNameLabel.TabIndex = 0;
- this.classNameLabel.Text = "ComonentName";
- //
- // destinationTextBox
- //
- this.destinationTextBox.Enabled = false;
- this.destinationTextBox.Location = new System.Drawing.Point(110, 65);
- this.destinationTextBox.Name = "destinationTextBox";
- this.destinationTextBox.Size = new System.Drawing.Size(146, 20);
- this.destinationTextBox.TabIndex = 4;
- //
- // destinationLabel
- //
- this.destinationLabel.AutoSize = true;
- this.destinationLabel.Location = new System.Drawing.Point(19, 68);
- this.destinationLabel.Name = "destinationLabel";
- this.destinationLabel.Size = new System.Drawing.Size(60, 13);
- this.destinationLabel.TabIndex = 3;
- this.destinationLabel.Text = "Destination";
- //
- // dayFoldersCheckBox
- //
- this.dayFoldersCheckBox.AutoSize = true;
- this.dayFoldersCheckBox.Enabled = false;
- this.dayFoldersCheckBox.Location = new System.Drawing.Point(111, 136);
- this.dayFoldersCheckBox.Name = "dayFoldersCheckBox";
- this.dayFoldersCheckBox.Size = new System.Drawing.Size(79, 17);
- this.dayFoldersCheckBox.TabIndex = 8;
- this.dayFoldersCheckBox.Text = "Day folders";
- this.dayFoldersCheckBox.UseVisualStyleBackColor = true;
- //
- // destinationButton
- //
- this.destinationButton.Enabled = false;
- this.destinationButton.Location = new System.Drawing.Point(261, 65);
- this.destinationButton.Name = "destinationButton";
- this.destinationButton.Size = new System.Drawing.Size(30, 20);
- this.destinationButton.TabIndex = 5;
- this.destinationButton.Text = "...";
- this.destinationButton.UseVisualStyleBackColor = true;
- this.destinationButton.Click += new System.EventHandler(this.destinationButton_Click);
- //
- // yearFoldersCheckBox
- //
- this.yearFoldersCheckBox.AutoSize = true;
- this.yearFoldersCheckBox.Enabled = false;
- this.yearFoldersCheckBox.Location = new System.Drawing.Point(111, 94);
- this.yearFoldersCheckBox.Name = "yearFoldersCheckBox";
- this.yearFoldersCheckBox.Size = new System.Drawing.Size(82, 17);
- this.yearFoldersCheckBox.TabIndex = 6;
- this.yearFoldersCheckBox.Text = "Year folders";
- this.yearFoldersCheckBox.UseVisualStyleBackColor = true;
- //
- // monthFoldersCheckBox
- //
- this.monthFoldersCheckBox.AutoSize = true;
- this.monthFoldersCheckBox.Enabled = false;
- this.monthFoldersCheckBox.Location = new System.Drawing.Point(111, 115);
- this.monthFoldersCheckBox.Name = "monthFoldersCheckBox";
- this.monthFoldersCheckBox.Size = new System.Drawing.Size(90, 17);
- this.monthFoldersCheckBox.TabIndex = 7;
- this.monthFoldersCheckBox.Text = "Month folders";
- this.monthFoldersCheckBox.UseVisualStyleBackColor = true;
- //
- // eliminateSpacesCheckBox
- //
- this.eliminateSpacesCheckBox.AutoSize = true;
- this.eliminateSpacesCheckBox.Enabled = false;
- this.eliminateSpacesCheckBox.Location = new System.Drawing.Point(111, 194);
- this.eliminateSpacesCheckBox.Name = "eliminateSpacesCheckBox";
- this.eliminateSpacesCheckBox.Size = new System.Drawing.Size(165, 17);
- this.eliminateSpacesCheckBox.TabIndex = 11;
- this.eliminateSpacesCheckBox.Text = "Eliminate spaces in each field";
- this.eliminateSpacesCheckBox.UseVisualStyleBackColor = true;
- //
- // separatorLabel
- //
- this.separatorLabel.AutoSize = true;
- this.separatorLabel.Location = new System.Drawing.Point(19, 168);
- this.separatorLabel.Name = "separatorLabel";
- this.separatorLabel.Size = new System.Drawing.Size(53, 13);
- this.separatorLabel.TabIndex = 9;
- this.separatorLabel.Text = "Separator";
- //
- // separatorComboBox
- //
- this.separatorComboBox.Enabled = false;
- this.separatorComboBox.FormattingEnabled = true;
- this.separatorComboBox.Location = new System.Drawing.Point(110, 165);
- this.separatorComboBox.Name = "separatorComboBox";
- this.separatorComboBox.Size = new System.Drawing.Size(146, 21);
- this.separatorComboBox.TabIndex = 10;
- //
- // WriterCfgCtrl
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.separatorComboBox);
- this.Controls.Add(this.separatorLabel);
- this.Controls.Add(this.eliminateSpacesCheckBox);
- this.Controls.Add(this.monthFoldersCheckBox);
- this.Controls.Add(this.yearFoldersCheckBox);
- this.Controls.Add(this.destinationButton);
- this.Controls.Add(this.dayFoldersCheckBox);
- this.Controls.Add(this.destinationTextBox);
- this.Controls.Add(this.destinationLabel);
- this.Controls.Add(this.nameTextBox);
- this.Controls.Add(this.nameLabel);
- this.Controls.Add(this.classNameLabel);
- this.Name = "WriterCfgCtrl";
- this.Size = new System.Drawing.Size(300, 230);
- this.Load += new System.EventHandler(this.WriterCfgCtrl_Load);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.TextBox nameTextBox;
- private System.Windows.Forms.Label nameLabel;
- private System.Windows.Forms.Label classNameLabel;
- private System.Windows.Forms.TextBox destinationTextBox;
- private System.Windows.Forms.Label destinationLabel;
- private System.Windows.Forms.CheckBox dayFoldersCheckBox;
- private System.Windows.Forms.Button destinationButton;
- private System.Windows.Forms.CheckBox yearFoldersCheckBox;
- private System.Windows.Forms.CheckBox monthFoldersCheckBox;
- private System.Windows.Forms.CheckBox eliminateSpacesCheckBox;
- private System.Windows.Forms.Label separatorLabel;
- private System.Windows.Forms.ComboBox separatorComboBox;
- }
-}
diff --git a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfgCtrl.resx b/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfgCtrl.resx
deleted file mode 100644
index 1af7de150..000000000
--- a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterCfgCtrl.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterFactory.cs b/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterFactory.cs
deleted file mode 100644
index a791772e5..000000000
--- a/TestBenchFramework/BenchControl/ResultsWriters/Basic/WriterFactory.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-///
-/// Copyright (c) 2013-2015 Sensus Metering Systems
-///
-using TBF.BenchControl.Generic;
-
-namespace TBF.BenchControl.ResultsWriters.Basic
-{
- public class WriterFactory : IComponentFactory
- {
- public string ClassName { get { return "BasicResultsWriter"; } }
-
- public void ResetStaticProperties() { Writer.ResetStaticProperties(); }
-
- public IComponent DummyComponent() { return new Writer(); }
-
- public IComponentCfg DefaultConfig() { return new WriterCfg(this); }
-
- public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
- {
- return ComponentCfgBase.CreateFromDbEntity(typeof(WriterCfg), component, this);
- }
- }
-}
diff --git a/TestBenchFramework/BenchControl/TbfComponents.cs b/TestBenchFramework/BenchControl/TbfComponents.cs
index c97134e0d..24b8ed1d5 100644
--- a/TestBenchFramework/BenchControl/TbfComponents.cs
+++ b/TestBenchFramework/BenchControl/TbfComponents.cs
@@ -17,7 +17,6 @@ namespace TBF.BenchControl
Factories.Add(new TestMethods.Adjustment.TestMethodFactory());
Factories.Add(new ResultsPrinters.Basic.PrinterFactory());
- Factories.Add(new ResultsWriters.Basic.WriterFactory());
Factories.Add(new BenchInfo.Munich.ComponentFactory());
Factories.Add(new BenchInfo.Polska.ComponentFactory());
Factories.Add(new Cameras.CameraRoi.CameraRoiFactory());
diff --git a/TestBenchFramework/TBF.csproj b/TestBenchFramework/TBF.csproj
index 94ecf6527..e1e2228e2 100644
--- a/TestBenchFramework/TBF.csproj
+++ b/TestBenchFramework/TBF.csproj
@@ -911,15 +911,6 @@
PrinterCfgCtrl.cs
-
-
-
- UserControl
-
-
- WriterCfgCtrl.cs
-
-
@@ -1661,9 +1652,6 @@
PrinterCfgCtrl.cs
-
- WriterCfgCtrl.cs
-
WriterCfgCtrl.cs