private void CreateX264BatFileForm_Load(object sender, EventArgs e)
{
try
{
lblVersion.Text = Program.GetApplicationVersion();
gbScreen.SetEnabled(false);
if (!this.IsVfw4x264PathSetInSettings())
{
MessageBox.Show("Please go to the settings screen and set the vfw4x264.exe path", "vfw4x264 path not set", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else
{
Setting setting = Program.ApplicationSettingsService.GetSettingByName("vfw4x264");
_vfw4x264Path = setting.Value;
this.ConfigureDgvFilesGridColumns();
}
}
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 });
}
}