示例#1
0
        public int IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
        {
            switch (field)
            {
            case VSTASKFIELD.FLD_CHECKED:
                pfReadOnly = IsCheckedIsReadOnly ? 1 : 0;
                break;

            case VSTASKFIELD.FLD_DESCRIPTION:
                pfReadOnly = MessageIsReadOnly ? 1 : 0;
                break;

            case VSTASKFIELD.FLD_PRIORITY:
                pfReadOnly = PriorityIsReadOnly ? 1 : 0;
                break;

            case VSTASKFIELD.FLD_BITMAP:
            case VSTASKFIELD.FLD_CATEGORY:
            case VSTASKFIELD.FLD_COLUMN:
            case VSTASKFIELD.FLD_CUSTOM:
            case VSTASKFIELD.FLD_FILE:
            case VSTASKFIELD.FLD_LINE:
            case VSTASKFIELD.FLD_PROVIDERKNOWSORDER:
            case VSTASKFIELD.FLD_SUBCATEGORY:
            default:
                pfReadOnly = 1;
                break;
            }
            return(VSConstants.S_OK);
        }
示例#2
0
        public int IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
        {
            switch (field)
            {
            case VSTASKFIELD.FLD_CHECKED: pfReadOnly = 0; break;

            case VSTASKFIELD.FLD_PRIORITY: pfReadOnly = 0; break;

            default: pfReadOnly = 1; break;
            }
            return(0);
        }
示例#3
0
        /// <include file='doc\Task.uex' path='docs/doc[@for="Task.IVsTaskItem.IsReadOnly"]/*' />
        /// <internalonly/>
        int IVsTaskItem.IsReadOnly(VSTASKFIELD field, out int fReadOnly)
        {
            bool readOnly = true;

            switch (field)
            {
            case VSTASKFIELD.FLD_CHECKED:
                readOnly = !IsCheckedEditable;
                break;

            case VSTASKFIELD.FLD_PRIORITY:
                readOnly = !IsPriorityEditable;
                break;

            case VSTASKFIELD.FLD_DESCRIPTION:
                readOnly = !IsTextEditable;
                break;
            }

            fReadOnly = (readOnly) ? 1 : 0;
            return(NativeMethods.S_OK);
        }
示例#4
0
 public virtual int IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
 {
     pfReadOnly = 1;
     return(VSConstants.S_OK);
 }
示例#5
0
 public virtual void IsReadOnly(VSTASKFIELD field, out int fReadOnly){
   // this.readOnly ?
   fReadOnly = 1; // yep
 }
示例#6
0
 public virtual void IsReadOnly(VSTASKFIELD field, out int fReadOnly)
 {
     // this.readOnly ?
     fReadOnly = 1; // yep
 }
示例#7
0
 public int IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
 {
     pfReadOnly = 1; // TRUE
     return(0);
 }
示例#8
0
 public int IsReadOnly(VSTASKFIELD field, out int pfReadOnly) {
     pfReadOnly = 1; // TRUE
     return 0;
 }
示例#9
0
 int IVsTaskItem.IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
 {
     pfReadOnly = 1;
     return(VSConstants.S_OK);
 }
示例#10
0
        /// <include file='doc\Task.uex' path='docs/doc[@for="Task.IVsTaskItem.IsReadOnly"]/*' />
        /// <internalonly/>
        int IVsTaskItem.IsReadOnly(VSTASKFIELD field, out int fReadOnly)
        {
            bool readOnly = true;

            switch(field) {
                case VSTASKFIELD.FLD_CHECKED:
                    readOnly = !IsCheckedEditable;
                    break;
                case VSTASKFIELD.FLD_PRIORITY:
                    readOnly = !IsPriorityEditable;
                    break;
                case VSTASKFIELD.FLD_DESCRIPTION:
                    readOnly = !IsTextEditable;
                    break;
            }

            fReadOnly = (readOnly) ? 1 : 0;
            return NativeMethods.S_OK;
        }
示例#11
0
 public virtual int IsReadOnly(VSTASKFIELD field, out int fReadOnly)
 {
     fReadOnly = 1; // yep
     return(0);
 }
示例#12
0
 public int IsReadOnly([ComAliasName("Microsoft.VisualStudio.Shell.Interop.VSTASKFIELD")] VSTASKFIELD field, [ComAliasName("Microsoft.VisualStudio.OLE.Interop.BOOL")] out int pfReadOnly)
 {
     pfReadOnly = _isReadOnly ? 1 : 0;
     return(VSConstants.S_OK);
 }
示例#13
0
 public virtual int IsReadOnly(VSTASKFIELD field, out int fReadOnly){
   fReadOnly = 1; // yep
   return 0;
 }
示例#14
0
文件: Task.cs 项目: hesam/SketchSharp
 public int IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
 {
   switch (field) {
     case VSTASKFIELD.FLD_CHECKED: pfReadOnly = 0; break;
     case VSTASKFIELD.FLD_PRIORITY: pfReadOnly = 0; break;
     default: pfReadOnly = 1; break;
   }
   return 0;
 }
示例#15
0
 public int IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
 {
     pfReadOnly = 1;
     return VSConstants.S_OK;
 }