/// <summary> /// Handles the ClusteringFinished event of the Parent control /// </summary> /// <param name="sender">The ClusteringToolPanelExtensionViewModel that fired the event</param> /// <param name="e">Arguments for the event</param> private void parent_ClusteringFinished(object sender, ClusteringEventArgs e) { if (IsActive) { this.isPartOfCurrentClustering = true; } }
/// <summary> /// Handles the ClusteringFinished event /// </summary> /// <param name="sender">The object that fired the event</param> /// <param name="e">The arguments for the event</param> private void ClusteringFinishedHandler(object sender, ClusteringEventArgs e) { if (IsActive && IsValid) { IsPartOfActiveClustering = true; previousDescriptor = GetSimilarityDescriptor(); } }
/// <summary> /// Raises the ClusteringFinished event /// </summary> /// <param name="e">The event agruments</param> protected virtual void OnClusteringFinished(ClusteringEventArgs e) { EventHandler <ClusteringEventArgs> handler = this.ClusteringFinished; if (handler != null) { handler(this, e); } }