public void WriteDebugDocument(object sender, EventArgs e) { try { Simulation model = Apsim.Get(explorerPresenter.ApsimXFile, explorerPresenter.CurrentNodePath) as Simulation; WriteDebugDoc writeDocument = new WriteDebugDoc(explorerPresenter, model); writeDocument.Do(null); } catch (Exception err) { explorerPresenter.MainPresenter.ShowError(err); } }
public void WriteDebugDocument(object sender, EventArgs e) { try { Simulation model = Apsim.Get(explorerPresenter.ApsimXFile, explorerPresenter.CurrentNodePath) as Simulation; WriteDebugDoc writeDocument = new WriteDebugDoc(explorerPresenter, model); writeDocument.Do(null); } catch (Exception err) { explorerPresenter.MainPresenter.ShowMessage(err.ToString(), Models.DataStore.ErrorLevel.Error); } }