示例#1
0
        private void CreateNewAlgorithmPanel(PRAlgorithmLibrary.ClusterAlgorithms.IClusterAlgorithm algorithm)
        {
            var resultUIElement = new ClusterUserControls.ClusterResultDisplay()
            {
                ClusterAlgorithm = algorithm,
                InputVectors     = GetDataFromInput()
            };

            resultUIElement.CloseButtonClicked += ResultUIElement_CloseButtonClicked;
            ResultsPanel.Children.Add(resultUIElement);
        }
示例#2
0
 private void ResultUIElement_CloseButtonClicked(ClusterUserControls.ClusterResultDisplay obj)
 {
     ResultsPanel.Children.Remove(obj);
 }