Esempio n. 1
0
        private void HandlesdgvFilesCellDoubleClick(DataGridViewCellEventArgs e)
        {
            var id = dgvFiles.Rows[e.RowIndex].Cells[4].Value;

            if (_batchGuyEAC3ToSettings.BluRayDiscs == null)
            {
                return;
            }
            if (id == null)
            {
                return;
            }

            BluRaySummaryInfo summaryInfo = _batchGuyEAC3ToSettings.BluRayDiscs.GetEpisodeByEpisodeNumber(id.ToString());

            if (summaryInfo == null)
            {
                return;
            }

            BluRayDiscInfo discInfo = null;

            foreach (BluRayDiscInfo disc in _batchGuyEAC3ToSettings.BluRayDiscs.Where(d => d.IsSelected))
            {
                if (disc.BluRaySummaryInfoList != null)
                {
                    if (disc.BluRaySummaryInfoList.Where(s => s == summaryInfo).Count() == 1)
                    {
                        discInfo = disc;
                    }
                }
            }
            if (discInfo == null)
            {
                return;
            }

            BluRayTitleInfoForm form = new BluRayTitleInfoForm();

            form.SetBluRayTitleInfo(_batchGuyEAC3ToSettings.EAC3ToSettings, discInfo.BluRayPath, summaryInfo);
            form.IsCallingScreenCreateX264BatchFile = true;
            form.ShowDialog();
        }
        private void HandlesdgvFilesCellDoubleClick(DataGridViewCellEventArgs e)
        {
            var id = dgvFiles.Rows[e.RowIndex].Cells[4].Value;
            if (_batchGuyEAC3ToSettings.BluRayDiscs == null)
                return;
            if (id == null)
                return;

            BluRaySummaryInfo summaryInfo = _batchGuyEAC3ToSettings.BluRayDiscs.GetEpisodeByEpisodeNumber(id.ToString());
            if (summaryInfo == null)
                return;

            BluRayDiscInfo discInfo = null;
            foreach (BluRayDiscInfo disc in _batchGuyEAC3ToSettings.BluRayDiscs.Where(d => d.IsSelected))
            {
                if (disc.BluRaySummaryInfoList != null)
                {
                    if (disc.BluRaySummaryInfoList.Where(s => s == summaryInfo).Count() == 1)
                    {
                        discInfo = disc;
                    }
                }
            }
            if (discInfo == null)
                return;

            BluRayTitleInfoForm form = new BluRayTitleInfoForm();
            form.SetBluRayTitleInfo(_batchGuyEAC3ToSettings.EAC3ToSettings, discInfo.BluRayPath, summaryInfo);
            form.IsCallingScreenCreateX264BatchFile = true;
            form.ShowDialog();
        }
Esempio n. 3
0
        private void HandleDgvBluRaySummaryCellDoubleClick(DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
                return;
            var id = dgvBluRaySummary.Rows[e.RowIndex].Cells[1].Value;
            BluRaySummaryInfo summaryInfo = _currentBluRayDiscInfo.BluRaySummaryInfoList.SingleOrDefault(s => s.Eac3ToId == id.ToString());

            BluRayTitleInfoForm form = new BluRayTitleInfoForm();
            form.SetBluRayTitleInfo(_eac3toConfiguration, _currentBluRayDiscInfo.BluRayPath, summaryInfo);
            form.ShowDialog();
            this.BindDgvBluRaySummaryGrid();
        }