public void SetTablesHeap(TablesHeap tablesHeap)
{
this.currentTablesHeap = tablesHeap;
tablesTree.Nodes.Clear();
foreach (MetaDataTable table in tablesHeap.Tables)
{
if (table != null)
{
TreeNode node = new TreeNode(table.Type.ToString() + " (" + table.AmountOfRows.ToString() + ")");
node.Tag = table;
if (table.AmountOfRows > 0)
{
node.Nodes.Add(new TreeNode("Loading..."));
}
tablesTree.Nodes.Add(node);
}
}
}