Inheritance: System.EventArgs
Exemple #1
0
 internal void OnXAPFileUnzipped(object xap, FileInfoEventArgs fileInfo)
 {
     if (FileUnzipped != null)
     {
         FileUnzipped(this, fileInfo);
     }
 }
Exemple #2
0
        private void WriteEntryToFile(ZipInputStream zipStream, string filename)
        {
            using (FileStream streamWriter = File.Create(filename))
            {
                FileInfoEventArgs fileInfo = new FileInfoEventArgs(filename);
                OnXAPFileUnzipped(this, fileInfo);

                byte[] buffer = new byte[2048];
                while (true)
                {
                    int nSize = zipStream.Read(buffer, 0, buffer.Length);
                    if (nSize > 0)
                    {
                        streamWriter.Write(buffer, 0, nSize);
                    }
                    else
                    {
                        break;
                    }
                }
            }
        }
Exemple #3
0
        private void WriteEntryToFile(ZipInputStream zipStream, string filename)
        {
            using (FileStream streamWriter = File.Create(filename))
            {
                FileInfoEventArgs fileInfo = new FileInfoEventArgs(filename);
                OnXAPFileUnzipped(this, fileInfo);

                byte[] buffer = new byte[2048];
                while (true)
                {
                    int nSize = zipStream.Read(buffer, 0, buffer.Length);
                    if (nSize > 0)
                    {
                        streamWriter.Write(buffer, 0, nSize);
                    }
                    else
                    {
                        break;
                    }
                }
            }
        }
Exemple #4
0
 internal void OnXAPFileUnzipped(object xap, FileInfoEventArgs fileInfo)
 {
     if (FileUnzipped != null)
     {
         FileUnzipped(this, fileInfo);
     }
 }