예제 #1
0
        public void createListLayer(string tag)
        {
            currentLayer = noOfLayers;
            currentLayer++;
            noOfLayers++;

            layers[currentLayer] = new ListLayer(currentLayer, tag);
            DesignCanvas.Controls.Add(layers[currentLayer].getPanel());
            layers[currentLayer].getPanel().FlowDirection = FlowDirection.TopDown;
            layers[currentLayer].getPanel().AutoSize      = true;
        }
예제 #2
0
        public TextLayer(string tag, int ind, ListLayer list) : base(ind)
        {
            design = new IndexedTextBox(index);
            code   = new Element(tag);

            design.Text        = code.getHTML().getValue();//is se text change ho rha he
            design.BorderStyle = BorderStyle.None;
            design.ReadOnly    = true;
            design.BackColor   = Color.White;
            design.Click      += (s, er) =>
            {
                list.setCurrentLi(design.getIndex());
            };
        }
예제 #3
0
        public override void addTr()
        {
            noOfTr++;
            currentTr     = noOfTr;
            tr[currentTr] = new ListLayer(currentTr, "tr");

            /* IndexedTextBox t = tr[currentTr].getLi().getDesign();
             * t.Click += (s, er) =>
             * {
             *   IndexedFlowLayout f = (IndexedFlowLayout)t.Parent;
             *   MessageBox.Show(f.getIndex().ToString());
             * };*/
            p.Controls.Add(tr[currentTr].getPanel());
            tr[currentTr].getPanel().FlowDirection = FlowDirection.LeftToRight;
            tr[currentTr].getPanel().AutoSize      = true;
        }