public static void DeletedSelectedZD(IMap imap_0, IFeatureLayer ifeatureLayer_0) { Editor.Editor.StartEditOperation(); IWorkspace workspace = AppConfigInfo.GetWorkspace(); if (!WorkspaceOperator.WorkspaceIsSame(workspace, Editor.Editor.EditWorkspace as IWorkspace)) { (workspace as IWorkspaceEdit).StartEditOperation(); } ZDEditTools.DeletedSelectedZD(ifeatureLayer_0 as IFeatureSelection); if (!WorkspaceOperator.WorkspaceIsSame(workspace, Editor.Editor.EditWorkspace as IWorkspace)) { (workspace as IWorkspaceEdit).StopEditOperation(); } Editor.Editor.StopEditOperation(); imap_0.ClearSelection(); (imap_0 as IActiveView).Refresh(); }