Ejemplo n.º 1
0
        private void OnVideoLayoutChangedEvent(VisibleLayout newLayout)
        {
            // Get selected from playlist
            List <string> files = _playlistControl.GetCurrent();

            if (files.Count.Equals(0))
            {
                // nothing to change
                return;
            }

            // Apply changes to videoLayout list (_files)
            foreach (VideoFile videoFile in _files)
            {
                foreach (string file in files)
                {
                    if (videoFile.Filename.Equals(file))
                    {
                        videoFile.Layout = newLayout;
                        break;
                    }
                }
            }

            // Send layout request
            VideoLayoutRequest layoutRequest = new VideoLayoutRequest();

            foreach (VideoFile file in _files)
            {
                layoutRequest.TracksLayout.Add(file.Layout);
            }
            _playerCommunicatorControl.SendRequest(layoutRequest);
        }
        public TextAddonPropertiesControl()
        {
            InitializeComponent();

            //initialize list
            _subtitles = new SortedList <TimeSpan, Subtitle>();

            _layout = new VisibleLayout(0, 700, 1000, 300, 0, 128);
        }
Ejemplo n.º 3
0
        private void OnLayoutChangedEvent(VisibleLayout layout)
        {
            try
            {
                D3dVisibleAddon addon = GetCurrentAddon();
                addon.Layout = layout;

                // forward event
                if (AddonSetEvent != null)
                {
                    AddonSetEvent(addon);
                }
            }
            catch (System.Exception)
            {
            }
        }
Ejemplo n.º 4
0
 public D3dVisibleAddon(uint id, AddonType type, VisibleLayout layout) : base(id, type, layout)
 {
 }
Ejemplo n.º 5
0
 public VisibleObject()
 {
     _layout = new VisibleLayout();
 }
        public ImageAddonPropertiesControl()
        {
            InitializeComponent();

            _layout = new VisibleLayout(20, 20, 60, 60, 0, 128);
        }
Ejemplo n.º 7
0
 public AVisibleAddon(uint id, AddonType type, VisibleLayout layout) : base(id, type)
 {
     _layout = layout;
 }
Ejemplo n.º 8
0
        public VideoLayoutControl()
        {
            InitializeComponent();

            _layout = new VisibleLayout(200, 200, 600, 600, 0, 128);
        }