private void OnUserIn(object sender, UserEventArg e) { try { userouttimer.Stop(); } catch (Exception) { } Trace.WriteLine("User In " + e.BodyId); StateControl.SwitchState(ProgramState.H1_G0_I0); }
private void OnLostUser(object sender, UserEventArg e) { Trace.WriteLine("Lost User" + e.BodyId); //sqlDeleteUser(e.BodyId); if (UserManager.currentUser != 0 && e.BodyId == UserManager.currentUser) { DisengageUser(e.BodyId); } }
private void OnNoUser(object sender, UserEventArg e) { Trace.WriteLine("No User " + e.BodyId); DisengageUser(e.BodyId); StateControl.SwitchState(ProgramState.H0_G0_I0); try { userouttimer.Start(); } catch (Exception) { } }
private void OnNewUser(object sender, UserEventArg e) { //sqlAddUser(e.BodyId); Trace.WriteLine("New user " + e.BodyId); }