private Editor() { this._editor.EnableUndoRedo(true); IEngineEditEvents_Event event2 = this._editor as IEngineEditEvents_Event; event2.OnStopOperation += (new IEngineEditEvents_OnStopOperationEventHandler(this.editEvents_OnStopOperation)); event2.OnCreateFeature += (new IEngineEditEvents_OnCreateFeatureEventHandler(this.editEvents_OnCreateFeature)); event2.OnDeleteFeature += (new IEngineEditEvents_OnDeleteFeatureEventHandler(this.editEvents_OnDeleteFeature)); event2.OnChangeFeature += (new IEngineEditEvents_OnChangeFeatureEventHandler(this.editEvents_OnChangeFeature)); }
public static void InitEditEnvironment() { g_operationStack = new ControlsOperationStackClass(); g_tbCtlEdit.OperationStack = g_operationStack; g_engineEditor = new EngineEditorClass(); g_engineEditLayers = (IEngineEditLayers)g_engineEditor; System.Object tbr = g_tbCtlEdit.Object; IExtension engineEditorExt = (IExtension)g_engineEditor; engineEditorExt.Startup(tbr); g_EngineEditEvents = (IEngineEditEvents_Event)g_engineEditor; }