[chronojump] Fixed runIntervalDistancesString shown on treeview Add



commit 78938713b5e0165cfe15f1802e0c9995fa82280a
Author: Xavier de Blas <xaviblas master gnome org>
Date:   Fri May 28 16:47:05 2010 +0800

    Fixed runIntervalDistancesString shown on treeview Add

 chronojump_server/bin/chronojumpServer.dll |  Bin 282624 -> 282624 bytes
 src/execute/event.cs                       |   14 +++++++-------
 src/runType.cs                             |    2 +-
 src/treeViewRun.cs                         |    4 ++--
 4 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/chronojump_server/bin/chronojumpServer.dll b/chronojump_server/bin/chronojumpServer.dll
index 900cad7..001553f 100755
Binary files a/chronojump_server/bin/chronojumpServer.dll and b/chronojump_server/bin/chronojumpServer.dll differ
diff --git a/src/execute/event.cs b/src/execute/event.cs
index d47d573..5d053a4 100644
--- a/src/execute/event.cs
+++ b/src/execute/event.cs
@@ -269,9 +269,9 @@ public class EventExecute
 			needUpdateEventProgressBar = false;
 		}
 		
-	Console.WriteLine("pulse update graph");	
+//	Console.WriteLine("pulse update graph");	
 		if(needUpdateGraph) {
-	Console.WriteLine("pulse update graph 2");	
+//	Console.WriteLine("pulse update graph 2");	
 			//solve problems when runAnalysis ended and tries to paint window
 			if(needUpdateGraphType == eventType.MULTICHRONOPIC && type == Constants.RunAnalysisName && finish) 
 				Console.WriteLine("is MC, RA, finished!");	
@@ -281,10 +281,10 @@ public class EventExecute
 			} else
 				updateGraph();
 	
-			Console.WriteLine("pulse update graph 3");	
+//			Console.WriteLine("pulse update graph 3");	
 			needUpdateGraph = false;
 		}
-	Console.WriteLine("pulse update graph 4");	
+//	Console.WriteLine("pulse update graph 4");	
 		
 		if(needSensitiveButtonFinish) {
 			eventExecuteWin.ButtonFinishMakeSensitive();
@@ -302,7 +302,7 @@ public class EventExecute
 			finish = true;
 			updateProgressBarForFinish();
 		} 
-	Console.WriteLine("pulse done");	
+//	Console.WriteLine("pulse done");	
 		//else 
 		//	updateTimeProgressBar();
 	}
@@ -322,7 +322,7 @@ public class EventExecute
 		
 		//if the time is too much, finish
 		if(timerCount - simulatedTimeAccumulatedBefore > timeMax) {
-				Log.WriteLine("EXCEEDES MAX!");
+//				Log.WriteLine("EXCEEDES MAX!");
 				simulateChangePlatform();
 		}
 		
@@ -336,7 +336,7 @@ public class EventExecute
 			//double dice = 0;
 			double myRand = rand.NextDouble();
 			double dice = myRand * (simulatedRange *10 +1);
-			Log.WriteLine(string.Format("rand: {0}, dice: {1}", myRand, dice));
+//			Log.WriteLine(string.Format("rand: {0}, dice: {1}", myRand, dice));
 			if (dice < 1)
 			{
 				simulateChangePlatform();
diff --git a/src/runType.cs b/src/runType.cs
index c2d41f5..e47c7e1 100644
--- a/src/runType.cs
+++ b/src/runType.cs
@@ -402,7 +402,7 @@ public class RunType : EventType
 		this.fixedValue = fixedValue;
 		this.unlimited = unlimited;
 		this.description = description;
-		this.distancesString = description;
+		this.distancesString = distancesString;
 		this.imageFileName = imageFileName;
 		
 		this.isPredefined	= true;
diff --git a/src/treeViewRun.cs b/src/treeViewRun.cs
index 04d2a29..dd9b849 100644
--- a/src/treeViewRun.cs
+++ b/src/treeViewRun.cs
@@ -204,9 +204,9 @@ public class TreeViewRunsInterval : TreeViewRuns
 		//write line for treeview
 		string [] myData = new String [getColsNum()];
 		int count = 0;
-		
+
 		if(newRunI.DistanceInterval == -1) {
-			//RunType runType = SqliteRunIntervalType.SelectAndReturnRunIntervalType(newRunI.Type);
+			runType = SqliteRunIntervalType.SelectAndReturnRunIntervalType(newRunI.Type);
 			myData[count++] = (lineCount + 1).ToString() +  
 				" (" + Util.GetRunIVariableDistancesStringRow(runType.DistancesString, lineCount).ToString() + "m)";
 			



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