예제 #1
0
파일: Unrar.cs 프로젝트: uotools/runuogdk
        protected virtual int OnNewVolume(string volume)
        {
            int result = 1;

            if (this.NewVolume != null)
            {
                NewVolumeEventArgs e = new NewVolumeEventArgs(volume);
                this.NewVolume(this, e);
                if (!e.ContinueOperation)
                {
                    result = -1;
                }
            }
            return(result);
        }
예제 #2
0
 protected virtual int OnNewVolume(string volume)
 {
     int result=1;
     if(this.NewVolume!=null)
     {
         NewVolumeEventArgs e=new NewVolumeEventArgs(volume);
         this.NewVolume(this, e);
         if(!e.ContinueOperation)
             result=-1;
     }
     return result;
 }