private void SetHeroContent(HeroContentOptions heroContent) { switch (heroContent) { case HeroContentOptions.RedSquare: elements.GetHeroContentComboBox().SelectItemByName("Red Square"); break; case HeroContentOptions.BlueSquare: elements.GetHeroContentComboBox().SelectItemByName("Blue Square"); break; case HeroContentOptions.Image: elements.GetHeroContentComboBox().SelectItemByName("Image"); break; default: elements.GetHeroContentComboBox().SelectItemByName("No Content"); break; } elements.GetSetHeroContentButton().Invoke(); }