/// <summary> /// Initializes a new instance of Berico.LinkAnalysis.SnagL. /// Extensions.ClusteringToolPanelItemExtensionViewModel /// </summary> public ClusteringToolPanelItemExtensionViewModel() { this.Index = 0; this.Description = "This tool provides clustering functionality"; this.ToolName = "Clustering"; this.similarityClustering = new SimilarityClustering(); LoadAttributes(); SetupCriteria(); SnaglEventAggregator.DefaultInstance.GetEvent <Clustering.ClusteringCompletedEvent>().Subscribe(ClusteringCompletedEventHandler, false); SnaglEventAggregator.DefaultInstance.GetEvent <Graph.Events.DataLoadedEvent>().Subscribe(DataLoadedEventHandler, false); AttributeSimilarityManager.Instance.ManagedAttributesChanged += new System.EventHandler <System.Collections.Specialized.NotifyCollectionChangedEventArgs>(Instance_ManagedAttributesChanged); }
/// <summary> /// Initializes a new instance of Berico.LinkAnalysis.SnagL. /// Extensions.ClusteringToolPanelItemExtensionViewModel /// </summary> public ClusteringToolPanelItemExtensionViewModel() { this.Index = 0; this.Description = "This tool provides clustering functionality"; this.ToolName = "Clustering"; this.similarityClustering = new SimilarityClustering(); LoadAttributes(); SetupCriteria(); SnaglEventAggregator.DefaultInstance.GetEvent<Clustering.ClusteringCompletedEvent>().Subscribe(ClusteringCompletedEventHandler, false); SnaglEventAggregator.DefaultInstance.GetEvent<Graph.Events.DataLoadedEvent>().Subscribe(DataLoadedEventHandler, false); AttributeSimilarityManager.Instance.ManagedAttributesChanged += new System.EventHandler<System.Collections.Specialized.NotifyCollectionChangedEventArgs>(Instance_ManagedAttributesChanged); }