Exemple #1
0
 void IStream.Clone(out IStream clone)
 {
     clone = new IStreamWrapper(this);
     if (clone == null)
     {
         throw new ArgumentNullException("StreamWrapper");
     }
 }
Exemple #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);
        }
Exemple #3
0
 protected IStreamWrapper(IStreamWrapper streamWrapper)
 {
     m_stream = streamWrapper.m_stream;
     m_pos    = streamWrapper.m_pos;
     m_sync   = streamWrapper.m_sync;
 }