public static Result OnShutdown(UIControlledApplication app) { LineStyleUpdater updater = new LineStyleUpdater(app.ActiveAddInId); UpdaterRegistry.UnregisterUpdater(updater.GetUpdaterId()); return(Result.Succeeded); }
public static void RegisterUpdater(AddInId id) { LineStyleUpdater updater = new LineStyleUpdater(id); UpdaterRegistry.RegisterUpdater(updater, true); UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), new ElementClassFilter(typeof(CurveElement)), Element.GetChangeTypeGeometry()); UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), new ElementClassFilter(typeof(CurveElement)), Element.GetChangeTypeElementAddition()); }