コード例 #1
0
 public SoundContent(int registryId,
                     string text = "",
                     MediaPanelType panelType       = MediaPanelType.Slider,
                     AtFlags playAt                 = AtFlags.ShowStates,
                     AtFlags displayAt              = AtFlags.All,
                     VerticalAlignment vAlignment   = VerticalAlignment.Stretch,
                     HorizontalAlignment hAlignment = HorizontalAlignment.Stretch,
                     Size size = default)
     : base(displayAt,
            vAlignment,
            hAlignment,
            size)
 {
     RegistryId = registryId;
     Text       = text;
     PanelType  = panelType;
     PlayAt     = playAt;
 }
コード例 #2
0
        public XamlControlSound(int id,
                                ISound sound,
                                string text,
                                MediaPanelType panelType,
                                AtFlags playAt,
                                AtFlags displayAt)
        {
            Id        = id;
            Sound     = sound;
            Text      = text;
            Panel     = panelType;
            PlayAt    = playAt;
            DisplayAt = displayAt;

            DataContext = this;

            InitializeComponent();
        }
コード例 #3
0
        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
                );
        }