本文整理汇总了C#中TransactionManager.getEndOfSession方法的典型用法代码示例。如果您正苦于以下问题:C# TransactionManager.getEndOfSession方法的具体用法?C# TransactionManager.getEndOfSession怎么用?C# TransactionManager.getEndOfSession使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TransactionManager
的用法示例。
在下文中一共展示了TransactionManager.getEndOfSession方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Beginscherm_Load
//.........这里部分代码省略.........
while (pinCorrect == false)
{
int insertedDigits = 0;
String pincode = "";
Boolean confirmed = false;
while (confirmed == false) ///Waits for user input until 4 digits have been submitted.
{
String input = arduino.getString();
if (checkInput(input) == true && insertedDigits < 4)
{
pinInvoer.printStar();
pinInvoer.falsepininfo.Visible = false;
insertedDigits++;
pincode += input.ElementAt(0);
}
else if (input.Contains("#KEY"))
{
reset = true;
break;
}
else if (input.Contains("CKEY"))
{
pinInvoer.clear();
insertedDigits = 0;
pincode = "";
}
if (insertedDigits == 4)
{
if (input.Contains("*")) { confirmed = true; }
}
}
pinInvoer.clear();
if (reset == true) { break; }
if (pincode == "1337" && EE) //Added easter egg
{
pinInvoer.pictureBox2.Visible = true;
pinInvoer.Refresh();
System.Threading.Thread.Sleep(8000);
reset = true;
pinInvoer.pictureBox2.Visible = false;
break;
}
if (security.checkHash(rekeningID, pincode) == false)
{
pinInvoer.falsepininfo.Visible = true;
HTTPpost tmp = new HTTPpost();
tmp.Incrementfalsepin(pasID);
HTTPget tmp2 = new HTTPget();
if(tmp2.getPinclass(pasID).poging >=2)
{
reset = true;
}
}
else
{
httppost.resetfalsepin(pasID);
pinCorrect = true;
}
}
pinInvoer.Hide();
if (reset == true)
{
break;
}
hoofdmenu.Show();
transactionManager = new TransactionManager(rekeningID, KlantID, arduino, pasID, stock);
while (true)
{
int choice = arduino.getChoice();
if (choice != 0)
{
transactionManager.executeChoice(choice);
if (transactionManager.getEndOfSession() == true)
{
hoofdmenu.Hide();
break;
}
}
}
}
}
}
catch (Exception) //Made the application safe, as soon as an exception is found, Close everything and show the out of order Form, main thread isnt even running anymore
{
ErrorScreen error = new ErrorScreen();
List<Form> openForms = new List<Form>();
foreach (Form f in Application.OpenForms)
openForms.Add(f);
foreach (Form f in openForms)
{
if (f.Name != "ErrorScreen")
f.Close();
}
while (true)
{ } //Loop forever :)
}
}