private void Train() { char cl = User.GetProgress(UserName); SetTextLetter(Char.ToString(cl)); int currentLetterProgress = Sign.GetSignInfo(UserName, this.CurrentLetter).Count; SetTitle("Training"); AreaGrab AG = new AreaGrab(UserName, this.CurrentLetter); AG.Start(); while (true) { if (AG.ReadyForSign) { cl = User.GetProgress(UserName); currentLetterProgress = Sign.GetSignInfo(UserName, this.CurrentLetter).Count; SetTextInstruction(String.Format("Ready for sign, capturing in {0} seconds", WaitTime/1000)); Thread.Sleep(WaitTime); CaptureSign(AG, currentLetterProgress, cl); } } }
private void Test() { char CurrentLetter = GetTestLetter(); SetTextLetter(Char.ToString(CurrentLetter)); SetTitle("Testing"); AreaGrab AG = new AreaGrab(UserName, CurrentLetter); AG.Start(); while (true) { if (AG.ReadyForSign) { SetTextInstruction(String.Format("Ready for sign, capturing in {0} seconds", WaitTime / 1000)); Thread.Sleep(WaitTime); TestSign(AG, CurrentLetter); } } }