public Information(string informationName, string primaryText, string secondaryText, int position, bool display, bool above) { List <TextFormatFlags> flags = new List <TextFormatFlags>(); this.informationName = informationName; this.primaryText = primaryText; this.secondaryText = secondaryText; this.position = position; this.display = display; this.above = above; flags = InformationFlagsFactory.GetInformationFlags(this.informationName); primaryTextFlags = flags.ElementAt(0); if (this.secondaryText != null) { secondaryTextFlags = flags.ElementAt(1); } InformationStyleFactory.SetInformationStyle(this); }
public void UpdateStyle() { InformationStyleFactory.SetInformationStyle(this); }