public DataStreamFromComStream(Microsoft.VisualStudio.OLE.Interop.IStream comStream) : base()
            {
                this.comStream = comStream;

                #if DEBUG
                creatingStack = Environment.StackTrace;
                #endif
            }
Beispiel #2
0
 public void SetPropsStream(Microsoft.VisualStudio.OLE.Interop.IStream _propsStream)
 {
     if (cpProps == null)
     {
         cpProps = new CPProps();
     }
     cpProps.SetPropsStream(_propsStream);
 }
Beispiel #3
0
        public int ReadUserOptions(Microsoft.VisualStudio.OLE.Interop.IStream pOptionsStream, string pszKey)
        {
            if (pszKey.CompareTo(cpSuoKey) == 0)
            {
                if (pOptionsStream == null)
                {
                    return(VSConstants.S_OK);
                }
                this.solEvents.SetPropsStream(pOptionsStream);
            }

            return(VSConstants.S_OK);
        }
Beispiel #4
0
        public int WriteUserOptions(Microsoft.VisualStudio.OLE.Interop.IStream pOptionsStream, string pszKey)
        {
            if (pszKey.CompareTo(cpSuoKey) == 0)
            {
                if (Globals.processor.HasData())
                {
                    ICPProps cpProps = new CPProps();
                    cpProps.Save(pOptionsStream);
                }
            }

            return(VSConstants.S_OK);
        }
 protected override void Dispose(bool disposing)
 {
     try {
         if (disposing)
         {
             if (comStream != null)
             {
                 Flush();
             }
         }
         // Cannot close COM stream from finalizer thread.
         comStream = null;
     }
     finally {
         base.Dispose(disposing);
     }
 }
Beispiel #6
0
 protected override void Dispose(bool disposing) {
     try {
         if (disposing) {
             if (comStream != null) {
                 Flush();
             }
         }
         // Cannot close COM stream from finalizer thread.
         comStream = null;
     }
     finally {
         base.Dispose(disposing);
     }
 }
Beispiel #7
0
            public DataStreamFromComStream(Microsoft.VisualStudio.OLE.Interop.IStream comStream) : base() {
                this.comStream = comStream;

                #if DEBUG
                creatingStack = Environment.StackTrace;
                #endif
            }
Beispiel #8
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing && (this.comStream != null))
         {
             this.Flush();
         }
         this.comStream = null;
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
Beispiel #9
0
 public DataStreamFromComStream(Microsoft.VisualStudio.OLE.Interop.IStream comStream)
 {
     this.comStream = comStream;
 }
Beispiel #10
0
 public virtual int SaveViewState(Microsoft.VisualStudio.OLE.Interop.IStream stream)
 {
     return(NativeMethods.S_OK);
 }
Beispiel #11
0
 public static extern void CreateStreamOnHGlobal(IntPtr hGlobal, [MarshalAs(UnmanagedType.Bool)] bool deleteOnRelease, [Out] out Microsoft.VisualStudio.OLE.Interop.IStream stream);
 public int SaveViewState(Microsoft.VisualStudio.OLE.Interop.IStream pStream)
 {
     return(VSConstants.S_OK);
 }
Beispiel #13
0
 public virtual int SaveViewState(Microsoft.VisualStudio.OLE.Interop.IStream stream)
 {
     return(0);
 }
Beispiel #14
0
 /// <include file='doc\NativeMethods.uex' path='docs/doc[@for="DataStreamFromComStream.Close"]/*' />
 public override void Close() {
     if (comStream != null) {
         Flush();
         comStream = null;
         GC.SuppressFinalize(this);
     }
 }
Beispiel #15
0
 /// <include file='doc\NativeMethods.uex' path='docs/doc[@for="DataStreamFromComStream.Dispose"]/*' />
 public void Dispose() {
     if (comStream != null) {
         Flush();
         comStream = null;
     }
 }
Beispiel #16
0
 public int SaveViewState(Microsoft.VisualStudio.OLE.Interop.IStream pStream)
 {
     return(codeWindow.SaveViewState(pStream));
 }