Пример #1
0
 protected virtual void OnReceiveServiceMessage(ZipDLLServiceMessageEventArgs e)
 {
     if (ReceiveServiceMessage != null)
     {
         ReceiveServiceMessage(this, e);
     }
 }
Пример #2
0
        /*
         * DLLSERVICE *ServCallBk  = Callback function designed to be used for
         *        allowing the application to process Windows messages,
         *        or canceling the operation, as well as giving the
         *        option of a progress indicator. If this function
         *        returns a non-zero value, then it will terminate
         *        what it is doing. It provides the application with
         *        the name of the name of the archive member it has
         *        just processed, as well as it's original size.
         *
         * msg.ch = the name of the file being zipped
         * x = The size of the file being zipped
         *
         * */
        protected int ZDLLService(ref ZipCBChar msg, uint x)
        {
            string s = string.Empty;
            int    i = 0;

            for (i = 0; i <= msg.ch.Length; i++)
            {
                if (msg.ch[i] == 0)
                {
                    break;
                }
            }
            s = m_Ascii.GetString(msg.ch, 0, i);

            //Raise this event
            ZipDLLServiceMessageEventArgs e = new ZipDLLServiceMessageEventArgs(s, (int)x);

            OnReceiveServiceMessage(e);

            return(m_Stop);
        }
Пример #3
0
 private void zipObj_ReceiveServiceMessage(object sender, ZipDLLServiceMessageEventArgs e)
 {
     textBox2.Text = "Zipping: " + e.ArchiveFileName + " - " + e.SizeOfArchiveFile.ToString() + " bytes." + "\r\n";
     Application.DoEvents();
 }
Пример #4
0
        /*
        DLLSERVICE *ServCallBk  = Callback function designed to be used for
                          allowing the application to process Windows messages,
                          or canceling the operation, as well as giving the
                          option of a progress indicator. If this function
                          returns a non-zero value, then it will terminate
                          what it is doing. It provides the application with
                          the name of the name of the archive member it has
                          just processed, as well as it's original size.

        msg.ch = the name of the file being zipped
        x = The size of the file being zipped

         * */
        protected int ZDLLService(ref ZipCBChar msg, uint x)
        {
            string s = string.Empty;
            int i = 0;

            for (i = 0; i <= msg.ch.Length; i ++)
                if (msg.ch[i] == 0) break;
             s = m_Ascii.GetString(msg.ch,0,i);

            //Raise this event
            ZipDLLServiceMessageEventArgs e = new ZipDLLServiceMessageEventArgs(s, (int)x);
            OnReceiveServiceMessage (e);

            return m_Stop;
        }
Пример #5
0
 protected virtual void OnReceiveServiceMessage(ZipDLLServiceMessageEventArgs e)
 {
     if (ReceiveServiceMessage != null)
     {
         ReceiveServiceMessage(this, e);
     }
 }
Пример #6
0
 private void zipObj_ReceiveServiceMessage(object sender, ZipDLLServiceMessageEventArgs e)
 {
     textBox2.Text = "Zipping: " + e.ArchiveFileName + " - " + e.SizeOfArchiveFile.ToString() + " bytes." + "\r\n";
     Application.DoEvents();
 }