Munich Printer page orientation can be selected in component properties, version 1.5.122.

This commit is contained in:
Milan Hanajik
2015-09-24 18:59:42 +02:00
parent 5e9f9e7425
commit 6318ce7700
6 changed files with 85 additions and 10 deletions
@@ -14,6 +14,12 @@ namespace TBF.BenchControl.ResultsPrinters.Munich
public IComponent GetComponent(IList<IComponent> components) { return new Printer(this); }
public IComponentCfgCtrl GetControl() { return new PrinterCfgCtrl(); }
///
/// Serialized parameters
///
public Entities.PageOrientation PageOrientation;
public bool SupressPrinting; /// Bypass printing when true
/// <summary> Procedure parameters </summary>
[XmlIgnore]
public ProcParams ProcParams;
@@ -30,6 +36,8 @@ namespace TBF.BenchControl.ResultsPrinters.Munich
{
Name = "PrintedProtocol";
ParentName = string.Empty;
PageOrientation = Entities.PageOrientation.Portrait;
SupressPrinting = false;
ProcParams = new ProcParams();
}
@@ -41,7 +49,10 @@ namespace TBF.BenchControl.ResultsPrinters.Munich
public string ToString(int i)
{
return string.Format("Name={0}", Name);
return string.Format("Name={0}, Orientation={1}, SupressPrinting={2}",
Name,
PageOrientation,
SupressPrinting ? "yes" : "no");
}
}
}