Esempio n. 1
0
        protected void OnTrackedApplicationsChanged(string oldApplications)
        {
            if (oldApplications != null)
            {
                GlobalTextSelection.UnregisterApplications(oldApplications.Split(","));
            }

            GlobalTextSelection.RegisterApplications(TrackedApplications.Split(","));
        }
Esempio n. 2
0
        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;
            }
        }