C2020-002 Logic to use either the Letter or A4 paper size

This commit is contained in:
2020-02-14 17:16:28 +00:00
parent 2234bde5e1
commit b41320ed24
15 changed files with 111 additions and 47 deletions

View File

@@ -2413,6 +2413,13 @@ namespace Volian.Controls.Library
get { return _HowLong; }
set { _HowLong = value; }
}
private string _PaperSize;
public string PaperSize // C2020-002 paper size is now set in the format files
{
get { return _PaperSize; }
set { _PaperSize = value; }
}
public DisplaySearchEventArgs(TimeSpan howLong)
{
HowLong = howLong;
@@ -2423,6 +2430,12 @@ namespace Volian.Controls.Library
_TypesSelected = typesSelected;
_MyItemInfoList = myItemInfoList;
_SearchString = searchString;
foreach (ItemInfo tmpII in myItemInfoList)
if (tmpII != null && tmpII.ActiveFormat != null)
{
_PaperSize = tmpII.ActiveFormat.PlantFormat.FormatData.PDFPageSize.PaperSize; // C2020-002 paper size is now set in the format files
break;
}
}
}
public delegate void DisplaySearchEvent(object sender, DisplaySearchEventArgs args);