[chronojump] Simulated tests more explicit on treeviews



commit 0626100f929190de73533828edd8609e1ba42301
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Mar 11 12:45:02 2011 +0100

    Simulated tests more explicit on treeviews

 src/constants.cs              |    1 +
 src/treeViewJump.cs           |    4 ++--
 src/treeViewMultiChronopic.cs |    2 +-
 src/treeViewPulse.cs          |    2 +-
 src/treeViewReactionTime.cs   |    2 +-
 src/treeViewRun.cs            |    4 ++--
 6 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/constants.cs b/src/constants.cs
index e0359ca..879f93e 100644
--- a/src/constants.cs
+++ b/src/constants.cs
@@ -390,6 +390,7 @@ public class Constants
 	
 	public static int Simulated = -1; 
 	public static string SimulatedMessage = Catalog.GetString("Tests are SIMULATED until Chronopic is connected at menu 'Tools / Chronopic'.");
+	public static string SimulatedTreeview = " (" + Catalog.GetString("Simulated") + ")"; 
 
 	
 	//levels of sport practice
diff --git a/src/treeViewJump.cs b/src/treeViewJump.cs
index 709eaf8..8990a21 100644
--- a/src/treeViewJump.cs
+++ b/src/treeViewJump.cs
@@ -193,7 +193,7 @@ public class TreeViewJumps : TreeViewEvent
 
 		string title = newJump.Type;
 		if(newJump.Simulated == Constants.Simulated)
-			title += " (s)";
+			title += Constants.SimulatedTreeview;
 
 		string [] myData = new String [getColsNum()];
 		int count = 0;
@@ -306,7 +306,7 @@ public class TreeViewJumpsRj : TreeViewJumps
 
 		string title = newJumpRj.Type;
 		if(newJumpRj.Simulated == Constants.Simulated)
-			title += " (s) ";
+			title += Constants.SimulatedTreeview + " ";
 
 		string myTypeComplet = "";
 		if(newJumpRj.Type == Constants.RunAnalysisName) 
diff --git a/src/treeViewMultiChronopic.cs b/src/treeViewMultiChronopic.cs
index a8c3d5f..3af9ac8 100644
--- a/src/treeViewMultiChronopic.cs
+++ b/src/treeViewMultiChronopic.cs
@@ -118,7 +118,7 @@ public class TreeViewMultiChronopic : TreeViewEvent
 		title = mc.Type + " " + typeExtra;
 		title += " " + array.Count.ToString() +"n";
 		if(mc.Simulated == Constants.Simulated)
-			title += " (s) ";
+			title += Constants.SimulatedTreeview + " ";
 
 		string [] myData = new String [19+1];
 		int count = 0;
diff --git a/src/treeViewPulse.cs b/src/treeViewPulse.cs
index df9b4ba..edff268 100644
--- a/src/treeViewPulse.cs
+++ b/src/treeViewPulse.cs
@@ -74,7 +74,7 @@ public class TreeViewPulses : TreeViewEvent
 		string myTypeComplet = newPulse.Type;
 		
 		if(newPulse.Simulated == Constants.Simulated)
-			myTypeComplet += " (s) ";
+			myTypeComplet += Constants.SimulatedTreeview + " ";
 		
 		if(newPulse.FixedPulse != -1) 
 			myTypeComplet += "(" + Util.TrimDecimals(newPulse.FixedPulse.ToString(), 3) + ")";
diff --git a/src/treeViewReactionTime.cs b/src/treeViewReactionTime.cs
index 1ed451c..3a36899 100644
--- a/src/treeViewReactionTime.cs
+++ b/src/treeViewReactionTime.cs
@@ -73,7 +73,7 @@ public class TreeViewReactionTimes : TreeViewEvent
 
 		string title = "";
 		if(newReactionTime.Simulated == Constants.Simulated)
-			title += " (s) ";
+			title += Constants.SimulatedTreeview + " ";
 
 		string [] myData = new String [getColsNum()];
 		int count = 0;
diff --git a/src/treeViewRun.cs b/src/treeViewRun.cs
index dd9b849..518f2d6 100644
--- a/src/treeViewRun.cs
+++ b/src/treeViewRun.cs
@@ -82,7 +82,7 @@ public class TreeViewRuns : TreeViewEvent
 
 		string title = newRun.Type;
 		if(newRun.Simulated == Constants.Simulated)
-			title += " (s)";
+			title += Constants.SimulatedTreeview;
 
 		string [] myData = new String [getColsNum()];
 		int count = 0;
@@ -168,7 +168,7 @@ public class TreeViewRunsInterval : TreeViewRuns
 		
 		string title = newRunI.Type;
 		if(newRunI.Simulated == Constants.Simulated)
-			title += " (s) ";
+			title += Constants.SimulatedTreeview + " ";
 
 		string myTypeComplet = title + "(" + newRunI.DistanceInterval + "x" + Util.GetLimitedRounded(newRunI.Limited, pDN) + ")";
 		



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