Esempio n. 1
0
 private void Table_OnTableDeleted(ucTableSettings item)
 {
     if (MessageBox.Show("Are you sure you want to delete table?", "Confirmation", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         pnlContent.Controls.Remove(item);
     }
 }
Esempio n. 2
0
        private void AddTable(TableSettings tableSett)
        {
            ucTableSettings table = new ucTableSettings();

            table.OnTableDeleted      += Table_OnTableDeleted;
            table.OnColumnSizeChanged += Table_OnColumnSizeChanged;
            pnlContent.Controls.Add(table);
            table.Dock = DockStyle.Top;
            table.BringToFront();
            pnlContent.Height += table.Height;
            table.Init(tableSett);
        }