Exemplo n.º 1
0
        private void AddCommand_OnExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            var type = (CompositionType)e.Parameter;

            var element = new CompositionDiagramElement
            {
                Name = "New " + type.ToString().ToLower()
            };

            _strategiesRegistry.Save(element, type == CompositionType.Composition);
        }
Exemplo n.º 2
0
 private void StrategiesControl_OnAdded(DiagramElementsControl ctrl, CompositionDiagramElement element)
 {
     _strategiesRegistry.Save(element, false);
     SelectElement(element, false);
 }