private void OpenEmulation(CompositionItem item) { var strategy = new EmulationDiagramStrategy { Composition = _strategiesRegistry.Clone(item.Element) }; var content = new EmulationControl { Strategy = strategy }; _layoutManager.OpenDocumentWindow(content); }
private void Selector_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { var element = (CompositionDiagramElement)StrategiesComboBox.SelectedItem; Composition = element != null?StrategiesRegistry.Clone(element) : null; }