/// <summary> /// Perform the command /// </summary> public void Do(CommandHistory commandHistory) { string bibFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "..", "APSIM.bib"); bibTeX = new BibTeX(bibFile); citations = new List <BibTeX.Citation>(); CreatePDF(modelNameToDocument); citations.Clear(); }
/// <summary> /// Perform the command /// </summary> public void Do(CommandHistory CommandHistory) { string bibFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "..", "APSIM.bib"); bibTeX = new BibTeX(bibFile); citations = new List <BibTeX.Citation>(); // Get the model we are to export. string modelName = Path.GetFileNameWithoutExtension(ExplorerPresenter.ApsimXFile.FileName.Replace("Validation", "")); DoExportPDF(modelName); }