Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 public virtual int IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
 {
     pfReadOnly = 1;
     return(VSConstants.S_OK);
 }
Ejemplo n.º 5
0
 public virtual void IsReadOnly(VSTASKFIELD field, out int fReadOnly){
   // this.readOnly ?
   fReadOnly = 1; // yep
 }
Ejemplo n.º 6
0
 public virtual void IsReadOnly(VSTASKFIELD field, out int fReadOnly)
 {
     // this.readOnly ?
     fReadOnly = 1; // yep
 }
Ejemplo n.º 7
0
 public int IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
 {
     pfReadOnly = 1; // TRUE
     return(0);
 }
Ejemplo n.º 8
0
 public int IsReadOnly(VSTASKFIELD field, out int pfReadOnly) {
     pfReadOnly = 1; // TRUE
     return 0;
 }
Ejemplo n.º 9
0
 int IVsTaskItem.IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
 {
     pfReadOnly = 1;
     return(VSConstants.S_OK);
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 11
0
 public virtual int IsReadOnly(VSTASKFIELD field, out int fReadOnly)
 {
     fReadOnly = 1; // yep
     return(0);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 13
0
 public virtual int IsReadOnly(VSTASKFIELD field, out int fReadOnly){
   fReadOnly = 1; // yep
   return 0;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 15
0
 public int IsReadOnly(VSTASKFIELD field, out int pfReadOnly)
 {
     pfReadOnly = 1;
     return VSConstants.S_OK;
 }