Beispiel #1
0
 private void Repository_ShapesInserted(object sender, RepositoryShapesEventArgs e)
 {
     if (!flowView.DiagramEdited && e.Count > 0)
     {
         CurrentActiveToolWrapper?.OnShapesInserted(e.Shapes.ToList());
     }
 }
Beispiel #2
0
 private void cachedRepository_ShapesUpdated(object sender, RepositoryShapesEventArgs e)
 {
     foreach (Shape shape in e.Shapes)
     {
         FilterShape filterShape = shape as FilterShape;
         if (filterShape != null)
         {
             _UpdateFilterPositionDataForFilter(filterShape);
         }
     }
 }
Beispiel #3
0
		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);
			}
		}
Beispiel #4
0
		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);
		}
Beispiel #7
0
 private void Repository_ShapesDeleted(object sender, RepositoryShapesEventArgs e)
 {
     OnObjectsDeleted(e.Shapes);
 }
Beispiel #8
0
 private void repository_ShapesUpdated(object sender, RepositoryShapesEventArgs e)
 {
     OnObjectsModified(e.Shapes);
 }