Esempio n. 1
0
        public void ShowSettingForm(Panel panel)
        {
            for (int i = 0; i < panel.Controls.Count; i++)
            {
                panel.Controls.RemoveAt(i);
            }
            FormTableItem frm = new FormTableItem(this);

            frm.TopLevel = false;
            panel.Controls.Add(frm);
            frm.Size = panel.Size;
            frm.Show();
        }
Esempio n. 2
0
 private void FormHardSetting_Load(object sender, EventArgs e)
 {
     foreach (TableData item in TableManage.tablesDoc.m_tableDataList)
     {
         ListViewItem lvi = listViewNFTable.Items.Add(item.strTableName);
     }
     frmTableItem          = new FormTableItem();
     frmTableItem.TopLevel = false;
     panel1.Controls.Add(frmTableItem);
     //frmTableItem.Size = panel1.Size;
     frmTableItem.Dock = DockStyle.Fill;
     frmTableItem.Show();
     frmTableItem.Hide();
 }