public static Result OnShutdown(UIControlledApplication app)
        {
            ObjStyleUpdater updater = new ObjStyleUpdater(app.ActiveAddInId);

            UpdaterRegistry.UnregisterUpdater(updater.GetUpdaterId());
            return(Result.Succeeded);
        }
        public static void RegisterUpdater(AddInId id)
        {
            ObjStyleUpdater updater = new ObjStyleUpdater(id);

            UpdaterRegistry.RegisterUpdater(updater, true);
            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(),
                                       new ElementClassFilter(typeof(GenericForm)),
                                       Element.GetChangeTypeGeometry());
            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(),
                                       new ElementClassFilter(typeof(GenericForm)),
                                       Element.GetChangeTypeElementAddition());
        }