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