예제 #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
파일: Form1.cs 프로젝트: wromerogithub/libs
 private void zipObj_ReceiveServiceMessage(object sender, ZipDLLServiceMessageEventArgs e)
 {
     textBox2.Text = "Zipping: " + e.ArchiveFileName + " - " + e.SizeOfArchiveFile.ToString() + " bytes." + "\r\n";
     Application.DoEvents();
 }