diff --git a/src/ui/Forms/DCinema/DCinemaPropertiesInterop.Designer.cs b/src/ui/Forms/DCinema/DCinemaPropertiesInterop.Designer.cs index 99e1036fb..f5da89956 100644 --- a/src/ui/Forms/DCinema/DCinemaPropertiesInterop.Designer.cs +++ b/src/ui/Forms/DCinema/DCinemaPropertiesInterop.Designer.cs @@ -445,7 +445,7 @@ this.textBoxMovieTitle.Name = "textBoxMovieTitle"; this.textBoxMovieTitle.Size = new System.Drawing.Size(224, 20); this.textBoxMovieTitle.TabIndex = 2; - this.textBoxMovieTitle.Text = "Bedtime For Bonzo"; + this.textBoxMovieTitle.Text = ""; // // labelMovieTitle // diff --git a/src/ui/Forms/DCinema/DCinemaPropertiesInterop.cs b/src/ui/Forms/DCinema/DCinemaPropertiesInterop.cs index c0a06b064..5fc35afd4 100644 --- a/src/ui/Forms/DCinema/DCinemaPropertiesInterop.cs +++ b/src/ui/Forms/DCinema/DCinemaPropertiesInterop.cs @@ -47,13 +47,9 @@ namespace Nikse.SubtitleEdit.Forms.DCinema { textBoxSubtitleID.Text = ss.CurrentDCinemaSubtitleId; textBoxMovieTitle.Text = ss.CurrentDCinemaMovieTitle; - int number; - if (int.TryParse(ss.CurrentDCinemaReelNumber, out number)) + if (int.TryParse(ss.CurrentDCinemaReelNumber, out var number) && numericUpDownReelNumber.Minimum <= number && numericUpDownReelNumber.Maximum >= number) { - if (numericUpDownReelNumber.Minimum <= number && numericUpDownReelNumber.Maximum >= number) - { - numericUpDownReelNumber.Value = number; - } + numericUpDownReelNumber.Value = number; } comboBoxLanguage.Text = ss.CurrentDCinemaLanguage; textBoxFontID.Text = ss.CurrentDCinemaFontId; @@ -147,7 +143,7 @@ namespace Nikse.SubtitleEdit.Forms.DCinema var ss = Configuration.Settings.SubtitleSettings; ss.CurrentDCinemaSubtitleId = textBoxSubtitleID.Text; ss.CurrentDCinemaMovieTitle = textBoxMovieTitle.Text; - ss.CurrentDCinemaReelNumber = numericUpDownReelNumber.Value.ToString(); + ss.CurrentDCinemaReelNumber = Convert.ToInt32(numericUpDownReelNumber.Value).ToString(CultureInfo.InvariantCulture); ss.CurrentDCinemaLanguage = comboBoxLanguage.Text; ss.CurrentDCinemaFontId = textBoxFontID.Text; ss.CurrentDCinemaFontUri = textBoxFontUri.Text; diff --git a/src/ui/Forms/DCinema/DCinemaPropertiesSmpte.Designer.cs b/src/ui/Forms/DCinema/DCinemaPropertiesSmpte.Designer.cs index 5ab817c9f..104ee1c06 100644 --- a/src/ui/Forms/DCinema/DCinemaPropertiesSmpte.Designer.cs +++ b/src/ui/Forms/DCinema/DCinemaPropertiesSmpte.Designer.cs @@ -546,7 +546,7 @@ namespace Nikse.SubtitleEdit.Forms.DCinema this.textBoxMovieTitle.Name = "textBoxMovieTitle"; this.textBoxMovieTitle.Size = new System.Drawing.Size(274, 20); this.textBoxMovieTitle.TabIndex = 2; - this.textBoxMovieTitle.Text = "Bedtime For Bonzo"; + this.textBoxMovieTitle.Text = ""; // // labelMovieTitle //