Printed header correctly scaled, bugfix in saving results into DB/Summary

This commit is contained in:
Milan Hanajik
2015-02-02 15:04:48 +01:00
parent 3b66d4c4f7
commit 3e48e4c50c
3 changed files with 9 additions and 6 deletions
@@ -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));
}
}