Example #1
0
        private void renderNode(Core.WF.WFnode state)
        {
            Trace.Warn("Begin render node");
            //nodePlaceHolder.Controls.Clear();
            presenPanel.Controls.Clear();

            var cmplexRenering = state.GetRenderingDocument().DocumentElement.FirstChild;

            presenPanel.Controls.Add(state.GetWebControl(Page.Server, cmplexRenering));
            //nodePlaceHolder.Controls.Add(state.GetWebControl(Page.Server, cmplexRenering));
            Trace.Warn("End render node");
        }
Example #2
0
        private void renderFinal(Core.WF.WFnode state, XmlNode nodeV)
        {
            //presenPanel3.Visible = false;
            clear.Visible = false;

            Panel pf = new Panel();

            pf.Attributes.Add("class", "header");
            HyperLink h = new HyperLink();

            h.Attributes.Add("href", "#");
            h.Text = state.Name;

            pf.Controls.Add(h);

            presenPanel2.Controls.Add(pf);


            state.Value = nodeV;
            var     cmplexRenering = state.GetRenderingDocument().DocumentElement.FirstChild;
            Control wc             = state.GetWebControl(Page.Server, cmplexRenering);

            Panel p         = new Panel();
            Panel pControls = new Panel();
            Panel pModify   = new Panel();

            pControls.Enabled = false;
            pControls.Controls.Add(wc);

            for (int i = 0; i < presenPanel3.Controls.Count; i++)
            {
                if (presenPanel3.Controls[i] != null)
                {
                    if (((ImageButton)presenPanel3.Controls[i]).ToolTip == state.Name)
                    {
                        ((ImageButton)presenPanel3.Controls[i]).Visible  = true;
                        ((ImageButton)presenPanel3.Controls[i]).ImageUrl = "../lib/image/Modify32.PNG";
                        ((ImageButton)presenPanel3.Controls[i]).Enabled  = true;
                        ((ImageButton)presenPanel3.Controls[i]).ToolTip  = "Modify";

                        pModify.Controls.Add(presenPanel3.Controls[i]);
                    }
                }
            }// TO DO : clear presenpanel3

            pModify.CssClass = "pModify";
            p.Controls.Add(pModify);
            p.Controls.Add(pControls);
            presenPanel2.Controls.Add(p);
        }