Exemplo n.º 1
0
            /// <include file='doc\VsTaskProvider.uex' path='docs/doc[@for="VsTaskProvider.VsTaskListCollection.Add"]/*' />
            /// <devdoc>
            ///    <para>[To be supplied.]</para>
            /// </devdoc>
            public VsTaskItem Add(string text, string file, int beginLine, int beginColumn, int endLine, int endColumn)
            {
                VsTaskItem task = new VsTaskItem(owner.serviceProvider);

                task.Text        = text;
                task.BeginLine   = endLine;
                task.BeginColumn = endColumn;
                task.EndLine     = endLine;
                task.EndColumn   = endColumn;
                task.Document    = file;
                Add(task);
                return(task);
            }
Exemplo n.º 2
0
 /// <include file='doc\VsTaskProvider.uex' path='docs/doc[@for="VsTaskProvider.VsTaskListCollection.Add3"]/*' />
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public void Add(VsTaskItem task)
 {
     owner.tasks.Add(task);
     owner.Refresh();
 }