private void ResetTimer()
 {
     TextInactivityWarning.Text = "";
     TimerIdleWarning.Stop();
     TimerIdleWarning.Start();
     TimerIdleExit.Stop();
 }
Ejemplo n.º 2
0
        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 = "";
        }