示例#1
0
 private void ContinueButton_Click(object sender, EventArgs e)
 {
     //remove this form
     OVERLAYFORM.ContinueSession();
     DIALOGUEFORM.Dispose();
     DIALOGUEFORM.Close();
 }
示例#2
0
 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;
     }
 }