Example #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);
        }
Example #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;
 }