void FileRemoving (object sender, FileRemovingEventArgs e)
		{
			if (e.FileName.IsPackagesConfigFileName ()) {
				e.IsCancelled = true;
				fileRemover.RemoveFile (e.FileName);
			}
		}
Exemple #2
0
 void FileRemoving(object sender, FileRemovingEventArgs e)
 {
     if (e.FileName.IsPackagesConfigFileName())
     {
         e.IsCancelled = true;
         fileRemover.RemoveFile(e.FileName);
     }
 }
 public bool OnFileRemoving(string path)
 {
     if (FileRemoving != null)
     {
         var eventArgs = new FileRemovingEventArgs(path);
         FileRemoving(this, eventArgs);
         return(!eventArgs.IsCancelled);
     }
     return(true);
 }
		public bool OnFileRemoving (string path)
		{
			if (FileRemoving != null) {
				var eventArgs = new FileRemovingEventArgs (path);
				FileRemoving (this, eventArgs);
				return !eventArgs.IsCancelled;
			}
			return true;
		}