コード例 #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);
        }
コード例 #2
0
        private void Selector_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var element = (CompositionDiagramElement)StrategiesComboBox.SelectedItem;

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