コード例 #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);
     }
 }
コード例 #2
0
ファイル: ContextMenu.cs プロジェクト: oseledets/ApsimX
 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);
     }
 }
コード例 #3
0
ファイル: ContextMenu.cs プロジェクト: hol353/ApsimX
 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);
     }
 }