/// <summary> /// Initializes a new instance of the AttributeSimilarityPanelViewModel class /// </summary> public AttributeSimilarityPanelViewModel(string _attributeName, Modularity.ToolPanel.ClusteringToolPanelItemExtensionViewModel _parent) { this.parent = _parent; this.previousValue = this.currentValue; this.attributeWeight = this.currentValue; AttributeName = _attributeName; UseExactSimilarity = true; SimilarityToolTip = Clustering.AttributeSimilarityManager.Instance.GetDefaultSimilarityMeasure(AttributeName).Name; // Wire up event handlers this.parent.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(parent_PropertyChanged); this.parent.ClusteringFinished += new EventHandler <ClusteringEventArgs>(parent_ClusteringFinished); // TODO: REMOVE HANDLER WHEN THIS CONTROL IS REMOVED FROM PARENT }
/// <summary> /// Initializes a new instance of the AttributeSimilarityPanelViewModel class /// </summary> public AttributeSimilarityPanelViewModel(string _attributeName, Modularity.ToolPanel.ClusteringToolPanelItemExtensionViewModel _parent) { this.parent = _parent; this.previousValue = this.currentValue; this.attributeWeight = this.currentValue; AttributeName = _attributeName; UseExactSimilarity = true; SimilarityToolTip = Clustering.AttributeSimilarityManager.Instance.GetDefaultSimilarityMeasure(AttributeName).Name; // Wire up event handlers this.parent.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(parent_PropertyChanged); this.parent.ClusteringFinished += new EventHandler<ClusteringEventArgs>(parent_ClusteringFinished); // TODO: REMOVE HANDLER WHEN THIS CONTROL IS REMOVED FROM PARENT }