Hi,Is it possible add logic to decide whether or not (based on some conditions) if it is allowed to start editing a particular graphic and cancel edition if needed? I would like to do something like this:
public MyClass()
{
MyEditor.EditStarting += OnEditStarting;
MyEditor.EditCompleted += OnEditCompleted;
}
private void OnEditStarting(object sender, Editor.EditEventArgs e)
{
if (!IsEditAllowed(e.Graphic))
{
e.Cancel = true;
}
else
{
...
}
}
private void OnEditCompleted(object sender, Editor.EditEventArgs e)
{
...
}
private bool IsEditAllowed(Graphic graphic)
{
...
}