[chronojump] JumpRj can return a list of double for height or tv
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] JumpRj can return a list of double for height or tv
- Date: Thu, 6 Aug 2020 10:21:28 +0000 (UTC)
commit ac571b60df5fa33ef7f3235d29324287a2e9ab32
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Aug 6 12:19:48 2020 +0200
JumpRj can return a list of double for height or tv
src/jump.cs | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/src/jump.cs b/src/jump.cs
index 5056ce5d..91bd3804 100644
--- a/src/jump.cs
+++ b/src/jump.cs
@@ -264,7 +264,35 @@ public class JumpRj : Jump
get { return tvString; }
set { tvString = value; }
}
-
+
+ public List<double> TvList
+ {
+ get {
+ List<double> l = new List<double>();
+ string [] strFull = TvString.Split(new char[] {'='});
+ foreach(string str in strFull)
+ {
+ if(Util.IsNumber(Util.ChangeDecimalSeparator(str), true))
+ l.Add(Convert.ToDouble(Util.ChangeDecimalSeparator(str)));
+ }
+ return l;
+ }
+ }
+
+ public List<double> HeightList
+ {
+ get {
+ List<double> l = new List<double>();
+ string [] strFull = TvString.Split(new char[] {'='});
+ foreach(string str in strFull)
+ {
+ if(Util.IsNumber(Util.ChangeDecimalSeparator(str), true))
+
l.Add(Util.GetHeightInCentimeters(Convert.ToDouble(Util.ChangeDecimalSeparator(str))));
+ }
+ return l;
+ }
+ }
+
public string TcString
{
get { return tcString; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]