Ejemplo n.º 1
0
 public void Refresh()
 {
     foreach (Control c in _paramValuePanel.Controls)
     {
         if (c.Tag != null)
         {
             string           pName = (c.Tag as string);
             CS_AbstractParam ap    = _csparams.getParam(pName);
             c.Enabled = ap.getEnabled();
         }
     }
 }
Ejemplo n.º 2
0
        /**
         * Sets the maximum for the progress while generating the tree
         */

        public void setupGenProgress()
        {
            if (progress != null)
            {
                // max progress = trunks * trunk segments * (first level branches + 1)
                long maxGenProgress =
                    ((CS_IntParam)csparams.getParam("0Branches")).intValue()
                    * ((CS_IntParam)csparams.getParam("0CurveRes")).intValue()
                    * (((CS_IntParam)csparams.getParam("1Branches")).intValue() + 1);

                // TODO
                //progress.beginPhase("Creating tree structure",maxGenProgress);
            }
        }
        public void showExplanation(string pname)
        {
            CS_AbstractParam p = _csparams.getParam(pname);

            WebBrowser wb = (_paramExplanationPanel.Controls[0] as WebBrowser);

            wb.DocumentText = p.getHTMLDesc();
        }
Ejemplo n.º 4
0
        // TODO: not used at the moment, may be the GUI
        // should get a TreeGenerator as a ParamContainer
        // and tree maker, and not work directly with Params
        // class

        /* (non-Javadoc)
         * @see net.sourceforge.arbaro.tree.TreeGenerator#getParam(java.lang.String)
         */
        public override CS_AbstractParam getParam(String csparam)
        {
            return(csparams.getParam(csparam));
        }