示例#1
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);
        }
示例#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;
 }