/// <summary> /// Creates a new instance. /// </summary> public DiagramToolApplication(IModelServices modelServices, IDiagramServices diagramServices, IUiServices uiServices) { ModelServices = modelServices; DiagramServices = diagramServices; UiServices = uiServices; UiServices.ImageExportDpi = Dpi.Dpi150; SubscribeToDiagramEvents(diagramServices); SubscribeToUiEvents(uiServices); }
private void SubscribeToDiagramEvents(IDiagramServices diagramServices) { diagramServices.ShapeAdded += OnShapeAdded; }