Example #1
0
 private void buttonRemove_Click(object sender, EventArgs e)
 {
     if (listViewNFTable.SelectedItems.Count > 0)
     {
         TableManage.tablesDoc.m_tableDictionary.Remove(listViewNFTable.SelectedItems[0].Text);
         TableManage.tablesDoc.m_tableDataList.RemoveAt(listViewNFTable.SelectedItems[0].Index);
         listViewNFTable.SelectedItems[0].Remove();
         //if (panel1.Controls.Count > 0)
         //{
         //    panel1.Controls.RemoveAt(0);
         //}
         frmTableItem.Hide();
     }
 }
Example #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();
 }