Exemplo n.º 1
0
        static string GetDepartmentName(OfficeDepartment officeDepartment)
        {
            string departmentName = "";

            switch (officeDepartment)
            {
            case OfficeDepartment.Accounting:
                departmentName = "Accounting";
                break;

            case OfficeDepartment.HumanResources:
                departmentName = "Human Resources";
                break;

            case OfficeDepartment.InformationTechnology:
                departmentName = "information technology.";
                break;

            case OfficeDepartment.Shipping:
                departmentName = "Shipping";
                break;

            case OfficeDepartment.MailRoom:
                departmentName = "Mail Room";
                break;

            case OfficeDepartment.Management:
                departmentName = "Management";
                break;
            }

            return(departmentName);
        }
Exemplo n.º 2
0
        static string GetDepartmentName(OfficeDepartment officeDepartmentType)
        {
            string officeDepartment;

              switch (officeDepartmentType)
              {
            case OfficeDepartment.Accounting:
              officeDepartment = "Accounting";
              break;
            case OfficeDepartment.HumanResources:
              officeDepartment = "Human Resources";
              break;
            case OfficeDepartment.InformationTechnology:
              officeDepartment = "Information Technology";
              break;
            case OfficeDepartment.Shipping:
              officeDepartment = "Shipping";
              break;
            case OfficeDepartment.Mailroom:
              officeDepartment = "Mailroom";
              break;
            case OfficeDepartment.Management:
              officeDepartment = "Management";
              break;
            default:
              officeDepartment = "Unknown";
              break;
              }

              return officeDepartment;
        }
Exemplo n.º 3
0
        static string GetDepartmentName(OfficeDepartment officeDepartmentType)
        {
            string officeDepartment;

            switch (officeDepartmentType)
            {
            case OfficeDepartment.Accounting:
                officeDepartment = "Accounting";
                break;

            case OfficeDepartment.HumanResources:
                officeDepartment = "Human Resources";
                break;

            case OfficeDepartment.InformationTechnology:
                officeDepartment = "Information Technology";
                break;

            case OfficeDepartment.Shipping:
                officeDepartment = "Shipping";
                break;

            case OfficeDepartment.Mailroom:
                officeDepartment = "Mailroom";
                break;

            case OfficeDepartment.Management:
                officeDepartment = "Management";
                break;

            default:
                officeDepartment = "Unknown";
                break;
            }

            return(officeDepartment);
        }