public VideoConverterForm(string ffmpegFilePath, VideoConverterOptions options) { FFmpegFilePath = ffmpegFilePath; Options = options; InitializeComponent(); ShareXResources.ApplyTheme(this); UpdateOptions(); txtInputFilePath.Text = Options.InputFilePath; txtOutputFolder.Text = Options.OutputFolderPath; txtOutputFileName.Text = Options.OutputFileName; cbVideoCodec.Items.AddRange(Helpers.GetEnumDescriptions <ConverterVideoCodecs>()); cbVideoCodec.SelectedIndex = (int)Options.VideoCodec; tbVideoQuality.SetValue(tbVideoQuality.Minimum + tbVideoQuality.Maximum - Options.VideoQuality); cbAutoOpenFolder.Checked = Options.AutoOpenFolder; cbUseCustomArguments.Checked = Options.UseCustomArguments; if (Options.UseCustomArguments) { txtArguments.Text = Options.CustomArguments; } formReady = true; }
public VideoConverterForm(string ffmpegFilePath, VideoConverterOptions options) { FFmpegFilePath = ffmpegFilePath; Options = options; InitializeComponent(); ShareXResources.ApplyTheme(this); cbVideoCodec.Items.AddRange(Helpers.GetEnumDescriptions <ConverterVideoCodecs>()); cbVideoCodec.SelectedIndex = (int)Options.VideoCodec; nudVideoQuality.SetValue(Options.VideoQuality); ready = true; UpdateOptions(); }