[longomatch] Show Score point in the description



commit aa269149fb9814ca1e8ea966c6c3ca3c84d6e2bb
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Sep 10 06:41:55 2014 +0200

    Show Score point in the description

 LongoMatch.Core/Store/TimelineEvent.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Store/TimelineEvent.cs b/LongoMatch.Core/Store/TimelineEvent.cs
index 8002021..a9c6cd6 100644
--- a/LongoMatch.Core/Store/TimelineEvent.cs
+++ b/LongoMatch.Core/Store/TimelineEvent.cs
@@ -144,7 +144,7 @@ namespace LongoMatch.Core.Store
                }
                
                [JsonIgnore]
-               public string Description {
+               public virtual string Description {
                        get {
                                return 
                                        Name + "\n" +
@@ -259,6 +259,13 @@ namespace LongoMatch.Core.Store
                public override Color Color {
                        get {
                                return Score != null ? Score.Color : EventType.Color;
+               
+               [JsonIgnore]
+               public override string Description {
+                       get {
+                               return String.Format ("{0} - {1}\n{2}\n{3}\n", Score.Points, Name,
+                                                     TagsDescription (), Start.ToMSecondsString(),
+                                                     Stop.ToMSecondsString());
                        }
                }
        }


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