Printed header correctly scaled, bugfix in saving results into DB/Summary
This commit is contained in:
@@ -93,7 +93,7 @@ namespace TBF.BenchControl.ResultsPrinters.Basic
|
||||
if (File.Exists("C:\\TBF\\header.png"))
|
||||
{
|
||||
Image img = Image.FromFile("C:\\TBF\\header.png");
|
||||
e.Graphics.DrawImage(new Bitmap(img), new Rectangle(0, 0, 745, 1050));
|
||||
e.Graphics.DrawImage(new Bitmap(img), new Rectangle(0, 0, 827, 1169));
|
||||
}
|
||||
|
||||
/// Set print area size and margins (in dots using 80 dpi)
|
||||
|
||||
@@ -399,8 +399,11 @@ namespace TBF.BenchControl.Sequences
|
||||
IList<Entities.TestResult> sortedResults = Utils.GetSortedTestResults(StateMachine.Procedure, results, 0);
|
||||
foreach (var rslt in sortedResults)
|
||||
{
|
||||
FluentCommon.SaveToDb(StateMachine.WtSession, rslt);
|
||||
summaryResults.Info(TestResult2CsvLine(rslt));
|
||||
if (rslt != null)
|
||||
{
|
||||
FluentCommon.SaveToDb(StateMachine.WtSession, rslt);
|
||||
summaryResults.Info(TestResult2CsvLine(rslt));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user