private void ContinueButton_Click(object sender, EventArgs e) { //remove this form OVERLAYFORM.ContinueSession(); DIALOGUEFORM.Dispose(); DIALOGUEFORM.Close(); }
private void CheckHome() { //check if timeout if (dialogueUp) { DIALOGUEFORM.Dispose(); DIALOGUEFORM.Close(); GoHome(); return; } //idle time up if (!idleReset && idleCount == MAXIDLE - 1) { HomeDialogue(); return; } //increment idle timer if (!idleReset && idleCount != MAXIDLE - 1) { idleCount += 1; SetTimer(); return; } //reset timer if (idleReset) { idleCount = 0; SetTimer(); idleReset = false; } }