Exemple #1
0
 public void ResetLogin()
 {
     currUserFullname = String.Empty;
     currStyle        = UserLevel.Диспетчер;
     currWorked       = false;
     if (panels != null)
     {
         foreach (Form pan in panels)
         {
             IUpdatePanel pm = (IUpdatePanel)pan;
             pm.UpdateUserLogged("Нет регистрации", UserLevel.Диспетчер);
             pm.UpdateTuningMenu(false);
         }
     }
 }
Exemple #2
0
 public void LoginUser(string fullname, string shortname, UserLevel level)
 {
     currUserFullname = fullname;
     currStyle        = level;
     currWorked       = true;
     if (panels != null)
     {
         foreach (Form pan in panels)
         {
             IUpdatePanel pm = (IUpdatePanel)pan;
             pm.UpdateUserLogged(shortname, level);
             pm.UpdateTuningMenu(level >= UserLevel.Инженер);
         }
     }
 }