Exemplo n.º 1
0
        private void listView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listView.FocusedItem == null)
            {
                return;
            }

            var tabPage = listView.FocusedItem.Tag as TabPage;

            if (tabPage == null)
            {
                return;
            }

            tabControl.SelectedTab = tabPage;

            // Record 페이지일시 FFmpeg 확인
            if (tabPage == tabPage_record && !_isChkecedFFmpeg)
            {
                var ffmpeg = new FFmpeg();
                if (ffmpeg.CheckAndDownloadExecuteFile())
                {
                    EnableRecordTabPage(true);
                    comboBox_sourceAudio.DataSource   = GetAudioSources();
                    comboBox_sourceAudio.SelectedItem = CaptureSetting.AudioSource;
                    _isChkecedFFmpeg = true;
                }
                else
                {
                    EnableRecordTabPage(false);
                }
            }
        }