Пример #1
0
 private void Repository_ShapesInserted(object sender, RepositoryShapesEventArgs e)
 {
     if (!flowView.DiagramEdited && e.Count > 0)
     {
         CurrentActiveToolWrapper?.OnShapesInserted(e.Shapes.ToList());
     }
 }
Пример #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);
         }
     }
 }
Пример #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);
			}
		}
Пример #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);
				}
			}
		}
Пример #5
0
		private void Repository_ShapesDeleted(object sender, RepositoryShapesEventArgs e) {
			OnObjectsDeleted(e.Shapes);
		}
Пример #6
0
		private void repository_ShapesUpdated(object sender, RepositoryShapesEventArgs e) {
			OnObjectsModified(e.Shapes);
		}
Пример #7
0
 private void Repository_ShapesDeleted(object sender, RepositoryShapesEventArgs e)
 {
     OnObjectsDeleted(e.Shapes);
 }
Пример #8
0
 private void repository_ShapesUpdated(object sender, RepositoryShapesEventArgs e)
 {
     OnObjectsModified(e.Shapes);
 }