[longomatch] Show time in fake project for easier match



commit cf0de706196223ae69cbd1a77709fb2c93719ac1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Oct 12 18:39:26 2013 +0200

    Show time in fake project for easier match

 LongoMatch.GUI/Gui/Component/ProjectListWidget.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/ProjectListWidget.cs 
b/LongoMatch.GUI/Gui/Component/ProjectListWidget.cs
index 2193ba5..65e54de 100644
--- a/LongoMatch.GUI/Gui/Component/ProjectListWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/ProjectListWidget.cs
@@ -23,6 +23,8 @@ using System.Collections.Generic;
 using System.IO;
 using Mono.Unix;
 using Gtk;
+
+using LongoMatch.Common;
 using LongoMatch.Handlers;
 using LongoMatch.Store;
 using LongoMatch.Video.Utils;
@@ -135,7 +137,12 @@ namespace LongoMatch.Gui.Component
                        text = text +"\n"+"<b>"+Catalog.GetString("Season")+":</b>  " + project.Season;
                        text = text +"\n"+"<b>"+Catalog.GetString("Competition")+":</b>  " + 
project.Competition;
                        text = text +"\n"+"<b>"+Catalog.GetString("Result")+":</b>  " + 
project.LocalGoals+"-"+ project.VisitorGoals;
-                       text = text +"\n"+"<b>"+Catalog.GetString("Date")+":</b>  " + 
project.MatchDate.ToShortDateString();
+                       if (project.Title == Constants.FAKE_PROJECT) {
+                               text = text +"\n"+"<b>"+Catalog.GetString("Date")+":</b>  " + 
project.LastModified.ToShortDateString() +
+                                       " " + project.LastModified.ToShortTimeString();
+                       } else {
+                               text = text +"\n"+"<b>"+Catalog.GetString("Date")+":</b>  " + 
project.MatchDate.ToShortDateString();
+                       }
 
                        (cell as Gtk.CellRendererText).Markup = text;
                }


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