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); } } }
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.Инженер); } } }