Example #1
0
        private void OpenEmulation(CompositionItem item)
        {
            var strategy = new EmulationDiagramStrategy
            {
                Composition = _strategiesRegistry.Clone(item.Element)
            };

            var content = new EmulationControl
            {
                Strategy = strategy
            };

            _layoutManager.OpenDocumentWindow(content);
        }
Example #2
0
        private void Selector_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var element = (CompositionDiagramElement)StrategiesComboBox.SelectedItem;

            Composition = element != null?StrategiesRegistry.Clone(element) : null;
        }