Пример #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
 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;
 }