fixing
This commit is contained in:
parent
e76ec822db
commit
3603c9460e
@ -10,6 +10,10 @@ namespace Matomat.Input
|
||||
{
|
||||
public string getCodeID(string text)
|
||||
{
|
||||
if (Console.KeyAvailable)
|
||||
{
|
||||
ConsoleKeyInfo k = Console.ReadKey(true);
|
||||
}
|
||||
Factory.getLCD().print(text);
|
||||
string str = "";
|
||||
while (true)
|
||||
|
@ -60,10 +60,17 @@ namespace Matomat.Model
|
||||
object[] row = Factory.getDBO().getResult();
|
||||
if (row == null)
|
||||
{
|
||||
Console.WriteLine(Factory.getDBO().getError());
|
||||
return 0.0;
|
||||
//Console.WriteLine(Factory.getDBO().getError());
|
||||
return 0;
|
||||
}
|
||||
try
|
||||
{
|
||||
return (double.Parse(row[0].ToString())) / 100;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return (double.Parse(row[0].ToString()))/100;
|
||||
}
|
||||
|
||||
public bool GetAdmin()
|
||||
|
Loading…
Reference in New Issue
Block a user