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