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); }
private void OnLayoutChangedEvent(VisibleLayout layout) { try { D3dVisibleAddon addon = GetCurrentAddon(); addon.Layout = layout; // forward event if (AddonSetEvent != null) { AddonSetEvent(addon); } } catch (System.Exception) { } }
public D3dVisibleAddon(uint id, AddonType type, VisibleLayout layout) : base(id, type, layout) { }
public VisibleObject() { _layout = new VisibleLayout(); }
public ImageAddonPropertiesControl() { InitializeComponent(); _layout = new VisibleLayout(20, 20, 60, 60, 0, 128); }
public AVisibleAddon(uint id, AddonType type, VisibleLayout layout) : base(id, type) { _layout = layout; }
public VideoLayoutControl() { InitializeComponent(); _layout = new VisibleLayout(200, 200, 600, 600, 0, 128); }