Пример #1
0
        /// <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);
            }
        }
Пример #2
0
        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);
        }
Пример #3
0
        /// <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);
        }
Пример #4
0
 private void OnSimulationCommencing(object sender, EventArgs e)
 {
     tree     = Apsim.Child(this, typeof(TreeProxy)) as TreeProxy;
     ZoneList = Apsim.Children(this, typeof(Zone));
 }
Пример #5
0
 private void OnSimulationCommencing(object sender, EventArgs e)
 {
     tree     = FindChild <TreeProxy>();
     ZoneList = FindAllChildren <Zone>().ToList();
 }
Пример #6
0
 private void OnSimulationCommencing(object sender, EventArgs e)
 {
     tree = Apsim.Child(this, typeof(TreeProxy)) as TreeProxy;
     ZoneList = Apsim.Children(this, typeof(Zone));
 }
Пример #7
0
        /// <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);
        }