public TextPopupManager(string fontContentPath, StackingMethod stackingMethod) { this.fontContentPath = fontContentPath; this.stackingMethod = stackingMethod; messages = new List <PopupTextElement>(); }
public RegionsModel(ICollection <Region> regions, StackingMethod method = StackingMethod.RegularStacking) { if (regions is null || !regions.Any()) { throw new ArgumentException("Regions are required to instantiate a regions model!"); } Regions = regions.ToHashSet(); Method = method; Rows = Method == StackingMethod.RegularStacking ? GetRows() : GetSegments(); }