public ComponentVideo(ref InfComponentsVideo17 comp) : base(comp.left, comp.top, comp.width, comp.height, (AtFlags)comp.displayAt) { VideoId = SetValue(comp.registryId, nameof(VideoId)); IsContinuous = SetValue(comp.isContinuous, nameof(IsContinuous)); IsFullScreen = SetValue(comp.isFullScreen, nameof(IsFullScreen)); ExtractStart = SetValue(comp.extractStart, nameof(ExtractStart)); ExtractStop = SetValue(comp.extractStop, nameof(ExtractStop)); Panel = SetValue((MediaPanelType)comp.panel, nameof(Panel)); }
public void Update(ref InfComponentsVideo17 comp) { ComponentFieldFlags flags = ComponentFieldFlags.None; VideoId = SetValue(VideoId, comp.registryId, nameof(VideoId), ref flags); IsContinuous = SetValue(IsContinuous, comp.isContinuous, nameof(IsContinuous), ref flags); IsFullScreen = SetValue(IsFullScreen, comp.isFullScreen, nameof(IsFullScreen), ref flags); ExtractStart = SetValue(ExtractStart, comp.extractStart, nameof(ExtractStart), ref flags); ExtractStop = SetValue(ExtractStop, comp.extractStop, nameof(ExtractStop), ref flags); Panel = SetValue(Panel, (MediaPanelType)comp.panel, nameof(Panel), ref flags); base.Update( comp.left, comp.top, comp.width, comp.height, (AtFlags)comp.displayAt, flags ); }