Exemple #1
0
 private void OnUserIn(object sender, UserEventArg e)
 {
     try { userouttimer.Stop(); }
     catch (Exception) { }
     Trace.WriteLine("User In " + e.BodyId);
     StateControl.SwitchState(ProgramState.H1_G0_I0);
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
        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) { }
        }
Exemple #4
0
 private void OnNewUser(object sender, UserEventArg e)
 {
     //sqlAddUser(e.BodyId);
     Trace.WriteLine("New user " + e.BodyId);
 }