Minor changes: (1) introductory logging, (2) simulation for Badger velka trat.

This commit is contained in:
Milan Hanajik 2016-01-26 13:39:51 +01:00
parent d575220aec
commit 0fdcbffcae
2 changed files with 18 additions and 3 deletions

View File

@ -603,7 +603,7 @@ namespace TBF.BenchControl
if (toTank) { throw (new Exception()); }
break;
}
#elif BADGER_MALA_TRAT || BADGER_VELKA_TRAT || TORINO50
#elif BADGER_MALA_TRAT || TORINO50
switch (regulValveNo)
{
case 1:
@ -618,6 +618,20 @@ namespace TBF.BenchControl
if (toTank) { throw (new Exception()); }
break;
}
#elif BADGER_VELKA_TRAT
switch (regulValveNo)
{
case 7:
case 2:
Div1sim = toTank;
break;
case 3:
Div2sim = toTank;
break;
default:
if (toTank) { throw (new Exception()); }
break;
}
#elif CEVAK_PT40_272 || MURES_PT40 || FUZHOU_40
switch (regulValveNo)
{

View File

@ -18,7 +18,7 @@ namespace TBF
public const string HomeDir = "C:\\Tbf\\"; /// Contains subdirectories Results, Logs, Images, ...
/// log4net
static readonly ILog log = LogManager.GetLogger(typeof(Program));
static ILog log;
const string log4netConfigFName = "log4netConfig.xml";
/// Program version string
@ -99,8 +99,9 @@ namespace TBF
/// Configue and start logging
log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(locAppDataDir + log4netConfigFName));
log = LogManager.GetLogger(typeof(Program));
log.Fatal("--------------------------------------------------------------------------------");
log.Fatal(string.Format("Starting TBF ver.{0}", Version));
log.Fatal(string.Format("TBF ver.{0}", Version));
///
/// Load the local settings