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; }
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()); }; }
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; }