private EntityTableMapping AddNewEntityTableMapping() { var tableMapping = new EntityTableMapping(EntityType) { Focusable = false }; tablesTreeViewItem.Items.Insert(tablesTreeViewItem.Items.Count - 1, tableMapping); tableMapping.TableChanged += (oldTable, newTable) => { if (newTable == null) { tablesTreeViewItem.Items.Remove(tableMapping); } }; return(tableMapping); }
private EntityTableMapping AddNewEntityTableMapping() { var tableMapping = new EntityTableMapping(EntityType) { Focusable = false }; tablesTreeViewItem.Items.Insert(tablesTreeViewItem.Items.Count - 1, tableMapping); tableMapping.TableChanged += (oldTable, newTable) => { if (newTable == null) tablesTreeViewItem.Items.Remove(tableMapping); }; return tableMapping; }