private void Repository_ShapesInserted(object sender, RepositoryShapesEventArgs e) { if (!flowView.DiagramEdited && e.Count > 0) { CurrentActiveToolWrapper?.OnShapesInserted(e.Shapes.ToList()); } }
private void cachedRepository_ShapesUpdated(object sender, RepositoryShapesEventArgs e) { foreach (Shape shape in e.Shapes) { FilterShape filterShape = shape as FilterShape; if (filterShape != null) { _UpdateFilterPositionDataForFilter(filterShape); } } }
private void Repository_ShapesInserted(object sender, RepositoryShapesEventArgs e) { // Insert shapes that are not yet part of its diagram foreach (Shape shape in e.Shapes) { Diagram d = e.GetDiagram(shape); if (d != null && !d.Shapes.Contains(shape)) d.Shapes.Add(shape); } }
private void Repository_ShapesDeleted(object sender, RepositoryShapesEventArgs e) { // Check if the deleted shapes still exists in its diagram and remove them in this case foreach (Shape s in e.Shapes) { if (s.Diagram != null) { Diagram d = s.Diagram; d.Shapes.Remove(s); } } }
private void Repository_ShapesDeleted(object sender, RepositoryShapesEventArgs e) { OnObjectsDeleted(e.Shapes); }
private void repository_ShapesUpdated(object sender, RepositoryShapesEventArgs e) { OnObjectsModified(e.Shapes); }