コード例 #1
0
 /// <summary>
 /// Конструктор скрипта.
 /// </summary>
 /// <param name="inputFolderPath">Путь к папке, для которой генерируется скрипт.</param>
 /// <param name="outputFolderPath">Путь к папке генерируемого скрипта.</param>
 /// <param name="settings">Настройки скрипта, загружаемые из XML-файла.</param>
 public AviSynthScript(string inputFolderPath, string outputFolderPath, AviSynthSettings settings)
 {
     this.settings = settings;
     this.inputFolderPath = inputFolderPath;
     string outputFileName = string.Format(OutputFileNameFormat, PathUtils.GetLastName(this.inputFolderPath), this.settings.CompressRatio, this.settings.OutputFPS, ScriptFileExtension);
     this.outputFilePath = PathUtils.GetPathWithTrailingSlash(outputFolderPath) + outputFileName;
 }
コード例 #2
0
 private void LoadAviSynthSettings()
 {
     this.aviSynthSettings = new AviSynthSettings();
     this.aviSynthSettingsShowFilesComboBox.DataSource       = this.settings.GetListControlItems      ("AviSynthSettings/ShowFiles");
     this.aviSynthSettingsShowFilesComboBox.SelectedItem     = this.settings.GetDefaultListControlItem("AviSynthSettings/ShowFiles");
     this.aviSynthSettingsSearchPatternСomboBox.DataSource   = this.settings.GetListControlItems      ("AviSynthSettings/SearchPattern");
     this.aviSynthSettingsSearchPatternСomboBox.SelectedItem = this.settings.GetDefaultListControlItem("AviSynthSettings/SearchPattern");
     this.aviSynthSettingsLoadingPluginComboBox.DataSource   = this.settings.GetListControlItems      ("AviSynthSettings/LoadingPlugin");
     this.aviSynthSettingsLoadingPluginComboBox.SelectedItem = this.settings.GetDefaultListControlItem("AviSynthSettings/LoadingPlugin");
     this.aviSynthSettingsCompressRatioComboBox.DataSource   = this.settings.GetListControlItems      ("AviSynthSettings/CompressRatio");
     this.aviSynthSettingsCompressRatioComboBox.SelectedItem = this.settings.GetDefaultListControlItem("AviSynthSettings/CompressRatio");
     this.aviSynthSettingsOutputFPSComboBox.DataSource       = this.settings.GetListControlItems      ("AviSynthSettings/OutputFPS");
     this.aviSynthSettingsOutputFPSComboBox.SelectedItem     = this.settings.GetDefaultListControlItem("AviSynthSettings/OutputFPS");
 }