Exemplo n.º 1
0
 void IStream.Clone(out IStream clone)
 {
     clone = new IStreamWrapper(this);
     if (clone == null)
     {
         throw new ArgumentNullException("StreamWrapper");
     }
 }
Exemplo n.º 2
0
        static public int OpenDocumentFromStream(Form1 Parent)
        {
            string sPath = System.Environment.CurrentDirectory + "\\Documents\\FormTypes.pdf";

            Parent.CloseDocument();
            FileStream srcStream = new FileStream(sPath, FileMode.Open);

            if (srcStream != null)
            {
                IStreamWrapper srcIStream = new IStreamWrapper(srcStream);
                Parent.m_CurDoc = Parent.m_pxcInst.OpenDocumentFrom(srcIStream, null);
            }

            return((int)Form1.eFormUpdateFlags.efuf_All);
        }
Exemplo n.º 3
0
 protected IStreamWrapper(IStreamWrapper streamWrapper)
 {
     m_stream = streamWrapper.m_stream;
     m_pos    = streamWrapper.m_pos;
     m_sync   = streamWrapper.m_sync;
 }