[chronojump/77] appbar message: "simulated" for all tests



commit c82daf7aa90eca12a0eff7897dced6aa8617bbb1
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Mar 3 17:46:12 2010 +0800

    appbar message: "simulated" for all tests

 src/execute/pulse.cs        |    5 ++++-
 src/execute/reactionTime.cs |    5 ++++-
 src/execute/run.cs          |   10 ++++++++--
 3 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/src/execute/pulse.cs b/src/execute/pulse.cs
index b13ce61..cbb9741 100644
--- a/src/execute/pulse.cs
+++ b/src/execute/pulse.cs
@@ -330,7 +330,10 @@ public class PulseExecute : EventExecute
 		eventDone = new Pulse(uniqueID, personID, sessionID, type, fixedPulse, totalPulsesNum, timesString, "", Util.BoolToNegativeInt(simulated)); 
 		
 		string myStringPush =   Catalog.GetString("Last pulse") + ": " + personName + " " + type ;
-		appbar.Push( 1, myStringPush );
+		if(simulated)
+			appbar.Push(1, Constants.SimulatedMessage);
+		else
+			appbar.Push( 1, myStringPush );
 				
 	
 		//event will be raised, and managed in chronojump.cs
diff --git a/src/execute/reactionTime.cs b/src/execute/reactionTime.cs
index 7a9fda8..8cd2e7d 100644
--- a/src/execute/reactionTime.cs
+++ b/src/execute/reactionTime.cs
@@ -234,7 +234,10 @@ Log.Write("wb ");
 			personName + " " + 
 			type + " " + Catalog.GetString("Time") + ": " + Util.TrimDecimals( time.ToString(), pDN ) ;
 		
-		appbar.Push( 1,myStringPush );
+		if(simulated)
+			appbar.Push(1, Constants.SimulatedMessage);
+		else
+			appbar.Push( 1,myStringPush );
 
 		uniqueID = SqliteReactionTime.Insert(
 				false, Constants.ReactionTimeTable, 
diff --git a/src/execute/run.cs b/src/execute/run.cs
index 8fd60f2..029c444 100644
--- a/src/execute/run.cs
+++ b/src/execute/run.cs
@@ -288,7 +288,10 @@ Log.WriteLine("MANAGE(3)!!!!");
 		string myStringPush =   Catalog.GetString("Last run") + ": " + RunnerName + " " + 
 			type + " " + Catalog.GetString("time") + ": " + Util.TrimDecimals( time.ToString(), pDN ) + 
 			" " + Catalog.GetString("speed") + ": " + Util.TrimDecimals ( (distance/time).ToString(), pDN );
-		appbar.Push( 1,myStringPush );
+		if(simulated)
+			appbar.Push(1, Constants.SimulatedMessage);
+		else
+			appbar.Push( 1,myStringPush );
 
 
 		string description = "";
@@ -795,7 +798,10 @@ public class RunIntervalExecute : RunExecute
 						Util.GetSpeed(distanceTotal.ToString(),
 							timeTotal.ToString(), metersSecondsPreferred )
 						, pDN ) ;
-			appbar.Push( 1,myStringPush );
+			if(simulated)
+				appbar.Push(1, Constants.SimulatedMessage);
+			else
+				appbar.Push( 1,myStringPush );
 
 
 			//event will be raised, and managed in chronojump.cs



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]