Ejemplo n.º 1
0
        /// <summary>
        /// Constructor - create the TaskListItem from the supplied TaskItem
        /// </summary>
        /// <param name="taskItem">TaskItem reference from the visual studio environment</param>
        public TaskListItemVM(EnvDTE.TaskItem taskItem)
        {
            // Get reference to the application
            applicationObject = Package.GetGlobalService(typeof(SDTE)) as DTE;

            // Instantiate the object first
            TaskListItem = new TaskListItem();

            // The description comes in like this -
            // TODO: Something to fix or else
            // Split the TODO section for the token
            Token = GetTokenFromDescription(taskItem.Description);

            // Take the full description for the description field
            Description = taskItem.Description;

            // Just copy the line straight over
            Line = taskItem.Line;

            // Only take the last file (not including directoty) for the filename
            Filename = GetFilenameFromFullFilename(taskItem.FileName);

            // Full filename is just the filename from the taskItem
            FullFilename = taskItem.FileName;
        }
Ejemplo n.º 2
0
 public void TaskNavigated(EnvDTE.TaskItem taskItem, ref bool navigateHandled)
 {
     _outputWindowPane.OutputString("TaskListEvents, TaskNavigated\n");
     _outputWindowPane.OutputString("\tTask description: " + taskItem.Description + "\n");
 }
Ejemplo n.º 3
0
 public void TaskRemoved(EnvDTE.TaskItem taskItem)
 {
     _outputWindowPane.OutputString("TaskListEvents, TaskRemoved\n");
     _outputWindowPane.OutputString("\tTask description: " + taskItem.Description + "\n");
 }
Ejemplo n.º 4
0
 public void TaskModified(EnvDTE.TaskItem taskItem, EnvDTE.vsTaskListColumn columnModified)
 {
     _outputWindowPane.OutputString("TaskListEvents, TaskModified\n");
     _outputWindowPane.OutputString("\tTask description: " + taskItem.Description + "\n");
 }