/// <summary> /// Sets the current logged in role of the user. /// </summary> private void setRole() { if (role.ToString().Equals("Techniker")) { currentRole = Major.TECHNICIAN.GetHashCode(); } else if (role.ToString().Equals("Schieber")) { currentRole = Major.EMPLOYEE.GetHashCode(); } }