public VideoControlsUndocked(Main mainForm, PositionsAndSizes positionsAndSizes)
 {
     InitializeComponent();
     _mainForm = mainForm;
     this.Icon = (Icon)mainForm.Icon.Clone();
     _positionsAndSizes = positionsAndSizes;
     _redockKeys = Utilities.GetKeys(Configuration.Settings.Shortcuts.MainVideoToggleVideoControls);
 }
Exemplo n.º 2
0
 public VideoPlayerUnDocked(Main main, PositionsAndSizes positionsAndSizes, Controls.VideoPlayerContainer videoPlayerContainer)
 {
     InitializeComponent();
     _mainForm = main;
     this.Icon = (Icon)_mainForm.Icon.Clone();
     _positionsAndSizes = positionsAndSizes;
     _videoPlayerContainer = videoPlayerContainer;
     _redockKeys = Utilities.GetKeys(Configuration.Settings.Shortcuts.MainVideoToggleVideoControls);
     RedockOnFullscreenEnd = false;
     videoPlayerContainer.TextBox.MouseMove += VideoPlayerUnDocked_MouseMove;
 }
Exemplo n.º 3
0
        internal void Initialize(AdjustEventHandler adjustCallback, PositionsAndSizes formPositionsAndSizes, bool onlySelected)
        {
            _formPositionsAndSizes = formPositionsAndSizes;
            if (onlySelected)
                radioButtonSelectedLinesOnly.Checked = true;
            else if (Configuration.Settings.Tools.LastShowEarlierOrLaterSelection == SelectionChoice.SelectionAndForward.ToString())
                radioButtonSelectedLineAndForward.Checked = true;
            else
                radioButtonAllLines.Checked = true;

            _adjustCallback = adjustCallback;
            timeUpDownAdjust.TimeCode = new TimeCode(Configuration.Settings.General.DefaultAdjustMilliseconds);
        }