80 lines
2.7 KiB
C#
80 lines
2.7 KiB
C#
namespace SteamWare
|
|
{
|
|
/// <summary>
|
|
/// classe gestione parametri deviceper stampa
|
|
/// </summary>
|
|
public class devInfoParam
|
|
{
|
|
/// <summary>
|
|
/// creazione oggetto parametri per stampa
|
|
/// </summary>
|
|
/// <param name="_OutputFormat"></param>
|
|
/// <param name="_PageHeight"></param>
|
|
/// <param name="_PageWidth"></param>
|
|
/// <param name="_MarginLeft"></param>
|
|
/// <param name="_MarginRight"></param>
|
|
/// <param name="_MarginTop"></param>
|
|
/// <param name="_MarginBottom"></param>
|
|
public devInfoParam(string _OutputFormat, string _PageHeight, string _PageWidth, string _MarginLeft, string _MarginRight, string _MarginTop, string _MarginBottom)
|
|
{
|
|
OutputFormat = _OutputFormat;
|
|
PageHeight = _PageHeight;
|
|
PageWidth = _PageWidth;
|
|
MarginLeft = _MarginLeft;
|
|
MarginRight = _MarginRight;
|
|
MarginTop = _MarginTop;
|
|
MarginBottom = _MarginBottom;
|
|
}
|
|
/// <summary>
|
|
/// formato output
|
|
/// </summary>
|
|
public string OutputFormat { get; set; }
|
|
/// <summary>
|
|
/// altezza
|
|
/// </summary>
|
|
public string PageHeight { get; set; }
|
|
/// <summary>
|
|
/// larghezza
|
|
/// </summary>
|
|
public string PageWidth { get; set; }
|
|
/// <summary>
|
|
/// margine Sx
|
|
/// </summary>
|
|
public string MarginLeft { get; set; }
|
|
/// <summary>
|
|
/// margine Dx
|
|
/// </summary>
|
|
public string MarginRight { get; set; }
|
|
/// <summary>
|
|
/// margine Top
|
|
/// </summary>
|
|
public string MarginTop { get; set; }
|
|
/// <summary>
|
|
/// margine Bottom
|
|
/// </summary>
|
|
public string MarginBottom { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the XML parameter.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The XML parameter.
|
|
/// </value>
|
|
public string xmlParam
|
|
{
|
|
get
|
|
{
|
|
return string.Format("<DeviceInfo>" +
|
|
" <OutputFormat>{0}</OutputFormat>" +
|
|
" <PageWidth>{1}</PageWidth>" +
|
|
" <PageHeight>{2}</PageHeight>" +
|
|
" <MarginTop>{3}</MarginTop>" +
|
|
" <MarginLeft>{4}</MarginLeft>" +
|
|
" <MarginRight>{5}</MarginRight>" +
|
|
" <MarginBottom>{6}</MarginBottom>" +
|
|
"</DeviceInfo>", OutputFormat, PageWidth, PageHeight, MarginTop, MarginLeft, MarginRight, MarginBottom);
|
|
}
|
|
}
|
|
}
|
|
}
|