Beispiel #1
0
 public ComponentSpelling(ref InfComponentsSpelling17 comp)
     : base(comp.left, comp.top, comp.width, comp.height, (AtFlags)comp.displayAt)
 {
     TextId     = SetValue(comp.registryId, nameof(TextId));
     ColorRed   = SetValue(comp.colorRed, nameof(ColorRed));
     ColorGreen = SetValue(comp.colorGreen, nameof(ColorGreen));
     ColorBlue  = SetValue(comp.colorBlue, nameof(ColorBlue));
 }
Beispiel #2
0
        public void Update(ref InfComponentsSpelling17 comp)
        {
            ComponentFieldFlags flags = ComponentFieldFlags.None;

            TextId     = SetValue(TextId, comp.registryId, nameof(TextId), ref flags);
            ColorRed   = SetValue(ColorRed, comp.colorRed, nameof(ColorRed), ref flags);
            ColorGreen = SetValue(ColorGreen, comp.colorGreen, nameof(ColorGreen), ref flags);
            ColorBlue  = SetValue(ColorBlue, comp.colorBlue, nameof(ColorBlue), ref flags);

            base.Update(
                comp.left, comp.top,
                comp.width, comp.height,
                (AtFlags)comp.displayAt,
                flags
                );
        }