private void CreateEAC3ToBatchForm_Load(object sender, EventArgs e)
{
try
{
lblVersion.Text = Program.GetApplicationVersion();
if (!this.IsEac3ToPathSetInSettings())
{
MessageBox.Show("Please go to the settings screen and set the eac3to.exe path", "eac3to path not set", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
gbScreen.SetEnabled(false);
}
else
{
this.LoadCountries();
Setting setting = Program.ApplicationSettingsService.GetSettingByName("eac3to");
_eac3ToPath = setting.Value;
this.SetEac3ToConfiguration();
cbRemuxVideoResolution.SelectedIndex = 3;
cbRemuxMedium.SelectedIndex = 1;
cbRemuxVideoFormat.SelectedIndex = 1;
cbEac3ToOutputDirectoryType.SelectedIndex = 0;
this.SetMenuItemCreateMKVMergeBatFileEnabledStatus();
this.SetRemuxNamingConventionCurrentTemplateExampleLabel();
}
}
catch (Exception ex)
{
_displayErrorMessageService.DisplayError(new ErrorMessage() { DisplayMessage = "There was a problem trying to load the screen!", DisplayTitle = "Error.", Exception = ex, MethodNameWhereExceptionOccurred = MethodBase.GetCurrentMethod().Name });
}
}