protected void OnTrackedApplicationsChanged(string oldApplications) { if (oldApplications != null) { GlobalTextSelection.UnregisterApplications(oldApplications.Split(",")); } GlobalTextSelection.RegisterApplications(TrackedApplications.Split(",")); }
protected void OnTrackTextSelectionsChanged() { if (TrackTextSelections) { GlobalTextSelection.Run(); GlobalTextSelection.SelectionChanged += GlobalTextSelection_SelectionChanged; Mediator.Register(this, (RemoveModuleMessage message) => { if (this == message.Module) { GlobalTextSelection.SelectionChanged -= GlobalTextSelection_SelectionChanged; } }); } else { GlobalTextSelection.SelectionChanged -= GlobalTextSelection_SelectionChanged; } }