diff options
author | Javier Castillo | 2011-02-08 15:49:42 +0100 |
---|---|---|
committer | Javier Castillo | 2011-02-08 15:49:42 +0100 |
commit | f262cffff65ff7655c13daf72382193284247497 (patch) | |
tree | 10716c9adc6a9b6c472f2bd96f1ce4112b245847 /AccountValue/Form1.cs | |
parent | add readme (diff) | |
download | logintool-f262cffff65ff7655c13daf72382193284247497.tar.gz logintool-f262cffff65ff7655c13daf72382193284247497.tar.xz logintool-f262cffff65ff7655c13daf72382193284247497.zip |
Version: 0.5.0
Fix: Negative Beträge werde durch 0 ersetzt.
Update: setup.msi ,setup.exe
Diffstat (limited to 'AccountValue/Form1.cs')
-rw-r--r-- | AccountValue/Form1.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/AccountValue/Form1.cs b/AccountValue/Form1.cs index 81998dd..5d5170c 100644 --- a/AccountValue/Form1.cs +++ b/AccountValue/Form1.cs @@ -21,6 +21,7 @@ using System.Diagnostics; // (C) 2005 - 2006 Randolph Welte randy@uni-freiburg.de#################################
//
// Bearbeitung Bohdan Dulya d_bohdan@gmx.de 2006 - 2009 ################################
+// Javier Castillo mail@javiercastillogt.com 2011 ######################################
// & Marco Haustein 2008 ###############################################################
@@ -617,6 +618,13 @@ namespace AccountValue }
else
{
+ // Prüfe ob value negativ ist
+ if (value.StartsWith("-"))
+ {
+ // falls ja, setze value auf 0
+ value = "0";
+ }
+
value += "€";
last_stand = value;
}
|