void WireEditorEvents()
{
try
{
Events.OnCurrentTaskChanged += delegate
{
if (Globals.getEditor(ArcMap.Application).CurrentTask != null)
System.Diagnostics.Debug.WriteLine(Globals.getEditor(ArcMap.Application).CurrentTask.Name);
};
Events2.BeforeStopEditing += delegate(bool save) { OnBeforeStopEditing(save); };
}
catch (Exception ex)
{
MessageBox.Show(A4LGSharedFunctions.Localizer.GetString("AttributeAssistantEditorError_10a") + ex.Message);
}
}