//Load Progran Function private void Main_Menu_Load(object sender, EventArgs e) { User.Text = "Current User: " + ATM.cur_name; //Starts Timer for Auto-Logout Screen_Timer.Interval = 45000; Screen_Timer.Start(); }
//inactivity Function - Restarts Timer if Mouse is Moved private void Mouse_Active(object sender, MouseEventArgs e) { Screen_Timer.Stop(); Screen_Timer.Start(); }
//inactivity Function - Restarts Timer if Mouse is Clicked private void UI_Click(object sender, EventArgs e) { Screen_Timer.Stop(); Screen_Timer.Start(); }