Esempio n. 1
0
        /// ------------------------------------------------------------------------------------
        public TextAnnotationEditor(ComponentFile file, string imageKey, Project project)
            : base(file, null, imageKey)
        {
            Logger.WriteEvent("TextAnnotationEditor constructor. file = {0}; imagekey = {1}", file, imageKey);
            InitializeComponent();
            Name = "Annotations";
            _toolStrip.Renderer = new NoToolStripBorderRenderer();

            _comboPlaybackSpeed.Font = Program.DialogFont;

            _project = project;

            InitializeGrid();

            LoadPlaybackSpeedCombo();
            _comboPlaybackSpeed.SelectedIndexChanged += HandlePlaybackSpeedValueChanged;
            SetSpeedPercentage(Settings.Default.AnnotationEditorPlaybackSpeedIndex);

            _videoPanel           = new VideoPanel();
            _videoPanel.BackColor = Color.Black;
            _videoPanel.SetPlayerViewModel(_grid.PlayerViewModel);
            _splitter.Panel1.Controls.Add(_videoPanel);

            SetComponentFile(file);
            _splitter.Panel1.ClientSizeChanged += HandleSplitterPanel1ClientSizeChanged;

            _buttonHelp.Click += delegate
            {
                // SP-887: Change Help link for Annotations
                Program.ShowHelpTopic("/Using_Tools/Sessions_tab/Annotations_tab/Annotations_tab_overview.htm");
            };
        }