Example #1
0
 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);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 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);
     }
 }