Esempio n. 1
0
		private void display_ShapesInserted(object sender, DiagramPresenterShapesEventArgs e) {
			UpdateStatusInfo();
		}
        private void dspTables_ShapesRemoved(object sender, DiagramPresenterShapesEventArgs e)
        {
            List<EntitySymbol> removed = e.Shapes.Where(shape => shape.GetType() == typeof (EntitySymbol)).Cast<EntitySymbol>().ToList();

            foreach (var tab in removed)
            {
                var tabl = tables.Single(t => t.Name == (string) tab.Tag);
                tabl.ShapePlacementInfo = null;
                tables.Remove(tabl);
            }

            GraphicHelper.RemoveLinkedShapes(removed);
            objectSelector.RefreshObjects();
        }