Exemplo n.º 1
0
        private void btnAddRow_Click(object sender, EventArgs e)
        {
            XPImagePanel img = new XPImagePanel()
            {
                Width = mColWidth, Height = mRowHeight
            };

            img.RefreshDesc("Index:" + flowLayoutPanel1.Controls.Count);
            flowLayoutPanel1.Controls.Add(img);
        }
Exemplo n.º 2
0
        private void BtnAddCol_Click(object sender, EventArgs e)
        {
            XPImagePanel img = new XPImagePanel()
            {
                Height = rowHeight,
                Width  = mColWidth
            };

            img.RefreshDesc("Index:" + tablePanel.Controls.Count);
            tablePanel.Controls.Add(img);
        }
Exemplo n.º 3
0
        private void InitEle()
        {
            btnAddRow.Click    += new EventHandler(btnAddRow_Click);
            btnDeleteRow.Click += new EventHandler(btnDeleteRow_Click);
            XPImagePanel img = new XPImagePanel()
            {
                Width  = mColWidth,
                Height = mRowHeight
            };

            img.RefreshDesc("Index:" + flowLayoutPanel1.Controls.Count);
            flowLayoutPanel1.AutoScroll = true;
            flowLayoutPanel1.Controls.Add(img);
        }
Exemplo n.º 4
0
        private void AddGridRow(int col, int rowHeight)
        {
            tablePanel.ColumnCount = col;
            for (int i = 0; i < col; i++)
            {
                this.tablePanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, mColWidth));
            }
            this.tablePanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, rowHeight));
            XPImagePanel img = new XPImagePanel()
            {
                Width  = mColWidth,
                Height = rowHeight
            };

            img.RefreshDesc("Index:" + tablePanel.Controls.Count);
            tablePanel.Controls.Add(img);
        }