private void ResetTimer() { TextInactivityWarning.Text = ""; TimerIdleWarning.Stop(); TimerIdleWarning.Start(); TimerIdleExit.Stop(); }
public AccountForm() { InitializeComponent(); KeyPreview = true; FormClosed += AccountForm_FormClosed; MouseMove += new MouseEventHandler(AccountForm_MouseMove); KeyDown += new KeyEventHandler(AccountForm_KeyDown); TimerIdleWarning.Start(); TimerIdleWarning.Tick += TimerIdleWarningDone; TimerIdleExit.Tick += TimerIdleExitDone; TextInactivityWarning.Text = ""; }