[longomatch] Format plays name number with 3 digits



commit 34bf0756d3c87d2db7258774b1d524bec436c317
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Sep 12 23:12:18 2010 +0200

    Format plays name number with 3 digits

 LongoMatch/DB/Project.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/DB/Project.cs b/LongoMatch/DB/Project.cs
index ee32181..c65601e 100644
--- a/LongoMatch/DB/Project.cs
+++ b/LongoMatch/DB/Project.cs
@@ -368,8 +368,8 @@ namespace LongoMatch.DB
 		public MediaTimeNode AddTimeNode(int dataSection, Time start, Time stop,Pixbuf thumbnail) {
 			MediaTimeNode tn ;
 			List<MediaTimeNode> playsList= sectionPlaysList[dataSection];
-			int count= playsList.Count+1;
-			string name = sections.GetName(dataSection) + " " +count;
+			string count= String.Format("{0:000}",playsList.Count+1);
+			string name = sections.GetName(dataSection) + " " + count;
 			// HACK: Used for capture where fps is not specified, asuming PAL 25fps
 			ushort fps = file != null ? file.Fps : (ushort)25;
 



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