/// <summary>Writes documentation for this cultivar by adding to the list of documentation tags.</summary> /// <param name="tags">The list of tags to add to.</param> /// <param name="headingLevel">The level (e.g. H2) of the headings.</param> /// <param name="indent">The level of indentation 1, 2, 3 etc.</param> public override void Document(List <AutoDocumentation.ITag> tags, int headingLevel, int indent) { if (IncludeInDocumentation) { // write description of this class. AutoDocumentation.DocumentModelSummary(this, tags, headingLevel, indent, false); tree = Apsim.Child(this, typeof(TreeProxy)) as TreeProxy; AutoDocumentation.DocumentModel(tree, tags, headingLevel, indent); } }
public void Attach(object model, object view, ExplorerPresenter explorerPresenter) { ForestryModel = model as TreeProxy; ForestryViewer = view as TreeProxyView; AttachData(); ForestryViewer.OnCellEndEdit += OnCellEndEdit; ForestryViewer.SetReadOnly(); this.propertyPresenter = new PropertyPresenter(); this.propertyPresenter.Attach(ForestryModel, ForestryViewer.ConstantsGrid, explorerPresenter); }
/// <summary>Writes documentation for this cultivar by adding to the list of documentation tags.</summary> /// <param name="tags">The list of tags to add to.</param> /// <param name="headingLevel">The level (e.g. H2) of the headings.</param> /// <param name="indent">The level of indentation 1, 2, 3 etc.</param> public override void Document(List <AutoDocumentation.ITag> tags, int headingLevel, int indent) { // need to put something here // add a heading. //tags.Add(new AutoDocumentation.Heading(Name, headingLevel)); // write description of this class. AutoDocumentation.GetClassDescription(this, tags, indent); tree = Apsim.Child(this, typeof(TreeProxy)) as TreeProxy; tree.Document(tags, headingLevel, indent); }
private void OnSimulationCommencing(object sender, EventArgs e) { tree = Apsim.Child(this, typeof(TreeProxy)) as TreeProxy; ZoneList = Apsim.Children(this, typeof(Zone)); }
private void OnSimulationCommencing(object sender, EventArgs e) { tree = FindChild <TreeProxy>(); ZoneList = FindAllChildren <Zone>().ToList(); }
private void OnSimulationCommencing(object sender, EventArgs e) { tree = Apsim.Child(this, typeof(TreeProxy)) as TreeProxy; ZoneList = Apsim.Children(this, typeof(Zone)); }
/// <summary>Writes documentation for this cultivar by adding to the list of documentation tags.</summary> /// <param name="tags">The list of tags to add to.</param> /// <param name="headingLevel">The level (e.g. H2) of the headings.</param> /// <param name="indent">The level of indentation 1, 2, 3 etc.</param> public override void Document(List<AutoDocumentation.ITag> tags, int headingLevel, int indent) { // need to put something here // add a heading. //tags.Add(new AutoDocumentation.Heading(Name, headingLevel)); // write description of this class. AutoDocumentation.GetClassDescription(this, tags, indent); tree = Apsim.Child(this, typeof(TreeProxy)) as TreeProxy; tree.Document(tags, headingLevel, indent); }