private void CreateNewAlgorithmPanel(PRAlgorithmLibrary.ClusterAlgorithms.IClusterAlgorithm algorithm) { var resultUIElement = new ClusterUserControls.ClusterResultDisplay() { ClusterAlgorithm = algorithm, InputVectors = GetDataFromInput() }; resultUIElement.CloseButtonClicked += ResultUIElement_CloseButtonClicked; ResultsPanel.Children.Add(resultUIElement); }
private void ResultUIElement_CloseButtonClicked(ClusterUserControls.ClusterResultDisplay obj) { ResultsPanel.Children.Remove(obj); }