private void BtnCheck_SetExtensions_Click(object sender, EventArgs e) { FormSetting f = new FormSetting(); f.InitialExtensions(this.txtCheck_OriginalExtension.Text); if (f.ShowDialog() == DialogResult.OK) { this.txtCheck_OriginalExtension.Text = f.GetExtensions(); } }
private CheckFileParameter GetCheckFileParameter() { CheckFileParameter param = new CheckFileParameter(); param.OriginalDirectory = this.txtCheck_OriginalDir.Text.Trim(); param.OutputDirectory = this.txtCheck_OutputDir.Text.Trim(); param.OriginalExtension = this.txtCheck_OriginalExtension.Text.Trim(); param.OutputFileExtension = this.txtCheck_OutputFileExtension.Text.Trim(); FormSetting f = new FormSetting(); param.AllExtensionOfLibreOfficeSupporting = f.GetAllExtensions(); return(param); }
private LibreOfficeParameter GetLibreOfficeParamter() { LibreOfficeParameter libreparam = new LibreOfficeParameter(); libreparam.Path = this.txtLibrePath.Text.Trim(); libreparam.IsincludSubfolder = this.ckbSubfolder.Checked; libreparam.Command = this.txtCommand.Text.Trim(); libreparam.OriginalDirectory = this.txtOriginalDir.Text.Trim(); libreparam.OutputDirectory = this.txtOutputDir.Text.Trim(); libreparam.OriginalExtension = this.txtOriginalExtension.Text.Trim(); libreparam.OutputFileExtension = this.txtOutputFileExtension.Text.Trim(); libreparam.Isoverwrite = this.ckboverwrite.Checked; libreparam.BatchFile = this.txtBatchFilePath.Text.Trim(); libreparam.IsOnlyLogNeedtoConvert = this.ckbLibreConvert_OnlyShowLogNeedtoConvert.Checked; FormSetting f = new FormSetting(); libreparam.AllExtensionOfLibreOfficeSupporting = f.GetAllExtensions(); return(libreparam); }