public void Update(ref InfComponentsHtml comp) { ComponentFieldFlags flags = ComponentFieldFlags.None; TextId = SetValue(TextId, comp.registryId, nameof(TextId), ref flags); IsFullHtml = SetValue(IsFullHtml, comp.isFullHtml != 0, nameof(IsFullHtml), ref flags); base.Update( comp.left, comp.top, comp.width, comp.height, (AtFlags)comp.displayAt, flags ); }
public ComponentHtml(ref InfComponentsHtml comp) : base(comp.left, comp.top, comp.width, comp.height, (AtFlags)comp.displayAt) { TextId = SetValue(comp.registryId, nameof(TextId)); IsFullHtml = SetValue(comp.isFullHtml != 0, nameof(IsFullHtml)); }