Munich Printer page orientation can be selected in component properties, version 1.5.122.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user