I am testing various methods and events of the PropertyGrid class but could not capture the double click an event, nor the automatic generation of the event name using the method CreateUniqueMethodName.
I need to intercept this action toopen my dialogue will be informed where the event code.
Can you be more specific?
It would appear that the documentation is not very clear. Since almost everything within the property grid is a control, they are all consuming the mouse clicks. I found the only place where it responds is by clicking in the small space between the main property table and the description below it.
The application is the PhoneBook. All the data serializable and stored in the List<>. Ithe main idea is to realize MVC pattern.
The question is how to implement events for deleting and editing contacts? Event for adding a contact is already exist and works.
To delete contact - inside the buttonDeleteContact_Click handler I need to get a selected object, than wrap it in DeletePersonEventArgs
and call the event (identical to AddClicked) DeleteClicked that will contail a code that delete a contact.
1. How to describe a type of Delete event ?
internalclass DeletePersonEventArgs : EventArgs
2. What should be in
3. What should be inside controller's method that handles the DeleteClicked event?
I am using distance method in the DBGeography to find the places within given raduis... but now I need to figure out whether the given geo coordinates (Lat, longitude) are whether within given geo fence or not... geo fence could be any shape (circle, square, ploygon etc... My question is that is there any classes or methods in C# to do that?
Effectively you're just going to do a PointIn... test. Given that you can represent pretty much anything as a polygon, you could use the techniques presented in this[^] article. It's fairly straightforward to create your own implementation.
I was brought up to respect my elders. I don't respect many people nowadays.