SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

restricting to add only one file of a type

Last post 02-09-2007 3:01 AM by smoldok. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 02-09-2007 3:01 AM

    restricting to add only one file of a type

    Hi,

     

    I'm trying to write an addin to restrict an specific type of file to be added only once in a project. And to restrict the deletion of it after one is added.

     

    How can I do this?

    The ProjectService.ProjectItemAdded and ProjectService.ProjectItemRemoved look like the right events to hook but they fire to late, I was looking something like ProjectItemAdding and ProjectItemRemoving but those does not exist.

    Are there any other events that I can use?

     

    thanks,

    sean

    Filed under:
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.