Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Diagram for .NET
»
Check if diagram is modified
Check if diagram is modified
Post Reply
Check if diagram is modified
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Cristian Cojocaru
Cristian Cojocaru
posted 11 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 14,
Visits: 24
Is there a method to know if the diagram is been modified by the user?
I want to enable or disable a button in relation to the diagram: if a shape is changed or added I want to enable the button, otherwise let it disabled.
Reply
Like
0
Nevron Support
Nevron Support
posted 11 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi,
It depends on what changes you are interested in. If you are interested in any change of the drawing document, you can check the value of its
IsModified
property.
If you are interested only in moving, resizing and rotating of shapes, then you can subscribe to the
NodeBoundsChanged
event of the drawing document's even sink service:
document.EventSinkService.NodeBoundsChanged += OnNodeBoundsChanged;
private void OnNodeBoundsChanged(NNodeEventArgs args)
{
}
If you are interested in any property change then you should subscribe to the
NodePropertyChanged
event of the drawing documents even sink service:
document.EventSinkService.NodePropertyChanged += OnNodePropertyChanged;
private void OnNodePropertyChanged(NNodePropertyEventArgs args)
{
string changedPropertyName = args.PropertyName;
}
Best Regards,
Nevron Support Team
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search