SetBluRayTitleInfoExternalSubtitleForEdit() public méthode

public SetBluRayTitleInfoExternalSubtitleForEdit ( BluRayTitleSubtitle subtitle ) : void
subtitle BatchGuy.App.Parser.Models.BluRayTitleSubtitle
Résultat void
Exemple #1
0
        private void HandlesDGVSubtitlesCellDoubleClick(DataGridViewCellEventArgs e)
        {
            var id = dgvSubtitles.Rows[e.RowIndex].Cells[1].Value;

            _currentBluRayTitleSubtitle = _bluRaySummaryInfo.BluRayTitleInfo.Subtitles.SingleOrDefault(a => a.Id == id.ToString());

            if (_currentBluRayTitleSubtitle.IsExternal == false)
            {
                MessageBox.Show("You cannot edit an Internal Subtitles", "Internal Subtitle", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            BluRayTitleInfoExternalSubtitleForm form = new BluRayTitleInfoExternalSubtitleForm();

            form.SetBluRayTitleInfoExternalSubtitleForEdit(_currentBluRayTitleSubtitle);
            form.ShowDialog();
            if (form.WasSaved)
            {
                this.LoadSubtitles();
            }
        }
        private void HandlesDGVSubtitlesCellDoubleClick(DataGridViewCellEventArgs e)
        {
            var id = dgvSubtitles.Rows[e.RowIndex].Cells[1].Value;
            _currentBluRayTitleSubtitle = _bluRaySummaryInfo.BluRayTitleInfo.Subtitles.SingleOrDefault(a => a.Id == id.ToString());

            if (_currentBluRayTitleSubtitle.IsExternal == false)
            {
                MessageBox.Show("You cannot edit an Internal Subtitles", "Internal Subtitle", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            BluRayTitleInfoExternalSubtitleForm form = new BluRayTitleInfoExternalSubtitleForm();
            form.SetBluRayTitleInfoExternalSubtitleForEdit(_currentBluRayTitleSubtitle);
            form.ShowDialog();
            if (form.WasSaved)
            {
                this.LoadSubtitles();
            }
        }