Beispiel #1
0
        public override bool EA_OnPreDeleteDiagram(Repository repository, EventProperties properties)
        {
            EAMain.UpdateRepository(repository);
            IEAVolatileDiagram diagram = EAMain.WrapVolatileDiagram(properties);

            return(_listeners.All(l => l.OnPreDeleteDiagram(diagram)));
        }
Beispiel #2
0
        public void EA_WrapVolatileDiagramTest()
        {
            IEADiagram         diagram    = _e.GetDecisionForcesDiagram();
            EventProperties    properties = EAEventPropertiesHelper.GetInstance("", "", "", 0, 0, diagram.ID, 0, 0);
            IEAVolatileDiagram d          = EAMain.WrapVolatileDiagram(properties);

            Assert.IsTrue(diagram.ID == d.DiagramID);
        }