string DescribePolicy(int value, CorporatePolicy policy) { bool isLeft = value <= 2; bool isRight = value >= 8; if (!isLeft && !isRight) { return(""); } switch (policy) { //case CorporatePolicy.Make: return DescribeAcquisitionPolicy(isLeft); case CorporatePolicy.FocusingOrSpread: return(DescribeFocusingPolicy(isLeft)); case CorporatePolicy.SalariesLowOrHigh: return(DescribeSalaries(isLeft)); case CorporatePolicy.CompetitionOrSupport: return(DescribeAttitudeToCompetition(isLeft)); default: return(policy.ToString() + ": " + value); } }
public static string GetPolicyDescription(CorporatePolicy policy) { return(policy.ToString()); }
void SetStuff() { var defaultLeft = ManagerOrTeamLeft; var defaultRight = ManagerOrTeamRight; switch (CorporatePolicy) { // mindset? case CorporatePolicy.CompetitionOrSupport: SetTexts("Competition or Collaboration", // SetTexts("Openness or Secretiveness", "Competition", "Collaboration", OpennessOrSecretivenessRight, OpennessOrSecretivenessLeft); break; case CorporatePolicy.DecisionsManagerOrTeam: SetTexts("Company Structure", "Vertical", "Horizontal", ManagerOrTeamLeft, ManagerOrTeamRight, "Managers generate more management points!", "+Max feature lvl\n+Team speed\nCheaper teams"); break; //case CorporatePolicy.DecisionsManagerOrTeam: SetTexts("Who makes decisions", "Manager", "Team", "+Team speed", "+Max feature lvl"); break; case CorporatePolicy.DoOrDelegate: SetTexts("Control level", "DO", "Delegate", defaultLeft, defaultRight, "+Max feature lvl", "+1 team"); break; case CorporatePolicy.PeopleOrProcesses: SetTexts("People or Process", "People", "Process", PeopleOrProcessLeft, PeopleOrProcessRight, "Managers stay longer in company", "We spend less <b>Manager points</b> on teams\nOrganization grows faster"); break; case CorporatePolicy.SalariesLowOrHigh: SetTexts("Salaries", "Low", "High", SalariesLeft, SalariesRight, "Less money on salaries", "Bigger employee loyalty"); break; case CorporatePolicy.HardSkillsOrSoftSkills: SetTexts("Skills or Communication", "Skill", "Team work", SkillsOrCommunicationsLeft, SkillsOrCommunicationsRight, "More PERSONAL traits\nBigger employee rating", "More TEAM traits"); break; default: SetTexts($"<b>{CorporatePolicy.ToString()}</b>", "Left", "Right", defaultLeft, defaultRight); break; } }