[longomatch] Add a new parameter to create timer periods with name
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add a new parameter to create timer periods with name
- Date: Mon, 7 Jul 2014 11:27:17 +0000 (UTC)
commit 09090d969d8f98422e8e833fdbed9e542f78aae5
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Jun 4 12:47:38 2014 +0200
Add a new parameter to create timer periods with name
LongoMatch.Core/Store/Timer.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Core/Store/Timer.cs b/LongoMatch.Core/Store/Timer.cs
index 0aea162..ee28aac 100644
--- a/LongoMatch.Core/Store/Timer.cs
+++ b/LongoMatch.Core/Store/Timer.cs
@@ -47,9 +47,11 @@ namespace LongoMatch.Store
}
}
- public void Start (Time start) {
+ public void Start (Time start, string name = null) {
+ if (name == null)
+ name = Name;
Stop (start);
- TimeNode tn = new TimeNode {Name = Name, Start = start};
+ TimeNode tn = new TimeNode {Name = name, Start = start};
Nodes.Add (tn);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]