internal static void InformCommentTasks(CommentTasksChangedEventArgs args)
        {
            var handler = CommentTasksChanged;

            if (handler != null)
            {
                handler(null, args);
            }
        }
 void OnCommentTasksChanged(object sender, CommentTasksChangedEventArgs e)
 {
     //because of parse queueing, it's possible for this event to come in after the solution is closed
     //so we track which solutions are currently open so that we don't leak memory by holding
     // on to references to closed projects
     if (e.Project != null && e.Project.ParentSolution != null && loadedSlns.Contains(e.Project.ParentSolution))
     {
         UpdateCommentTags(e.Project.ParentSolution, e.FileName, e.TagComments);
     }
 }
Exemple #3
0
        internal static void InformCommentTasks(CommentTasksChangedEventArgs args)
        {
            if (args.Changes.Count == 0)
            {
                return;
            }

            var handler = CommentTasksChanged;

            if (handler != null)
            {
                handler(null, args);
            }
        }
		void OnCommentTasksChanged (object sender, CommentTasksChangedEventArgs e)
		{
			//because of parse queueing, it's possible for this event to come in after the solution is closed
			//so we track which solutions are currently open so that we don't leak memory by holding 
			// on to references to closed projects
			if (e.Project != null && e.Project.ParentSolution != null && loadedSlns.Contains (e.Project.ParentSolution)) {
				Application.Invoke (delegate {
					UpdateCommentTags (e.Project.ParentSolution, e.FileName, e.TagComments);
				});
			}
		}
Exemple #5
0
 internal static void InformCommentTasks(CommentTasksChangedEventArgs args)
 {
     var handler = CommentTasksChanged;
     if (handler != null)
         handler (null, args);
 }