コード例 #1
0
        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);
        }
コード例 #2
0
 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;
 }