private static void SaveProperty(PrintVia dlg) { Param.SetValue(Param.PrintVia, dlg.BackEnd); if (string.IsNullOrEmpty(dlg.InputType) || dlg.InputType == "Dictionary") { Param.SetValue(Param.ConfigureDictionary, dlg.ExportMain.ToString()); Param.SetValue(Param.ReversalIndex, dlg.ExportReversal.ToString()); Param.SetValue(Param.GrammarSketch, dlg.ExportGrammar.ToString()); } Param.SetValue(Param.LayoutSelected, dlg.DictionaryName); Param.SetValue(Param.ExtraProcessing, dlg.ExtraProcessing.ToString()); Param.SetValue(Param.Media, _media); Param.SetValue(Param.PublicationLocation, dlg.OutputLocationPath); Param.Write(); }
private static void SaveDefaultProperty(PrintVia dlg) { Param.SetDefaultValue(Param.PrintVia, dlg.BackEnd); if (string.IsNullOrEmpty(dlg.InputType) || dlg.InputType == "Dictionary") { Param.SetDefaultValue(Param.ConfigureDictionary, dlg.ExportMain.ToString()); Param.SetDefaultValue(Param.ReversalIndex, dlg.ExportReversal.ToString()); Param.SetDefaultValue(Param.GrammarSketch, dlg.ExportGrammar.ToString()); } Param.SetDefaultValue(Param.LayoutSelected, dlg.DictionaryName); Param.SetDefaultValue(Param.ExtraProcessing, dlg.ExtraProcessing.ToString()); Param.SetDefaultValue(Param.Media, _media); if (Common.CustomSaveInFolder(dlg.OutputLocationPath)) Param.SetValue(Param.PublicationLocation, dlg.OutputLocationPath); Param.Write(); }
private void BtnFlexTest_Click(object sender, EventArgs e) { PrintVia printVia = new PrintVia(); printVia.InputType = "Dictionary"; printVia.ShowDialog(); string target = printVia.BackEnd; //"OpenOffice"; var tpe = new PsExport {Destination = target, DataType = printVia.InputType}; tpe.Export(txtInputPath.Text); }