예제 #1
0
        private static void DynamicModuleTypeDeletingEventHandler(IDynamicModuleTypeDeletingEvent @event)
        {
            if (@event == null || @event.Item == null || @event.Item.Provider == null)
                return;

            var transactionName = MvcWidgetInstaller.GetTransactionName(@event.Item);
            MvcWidgetInstaller.TemplateGaneratorAction(
                templateGenerator => templateGenerator.UnregisterTemplates(@event.Item.GetFullTypeName()),
                transactionName);

            MvcWidgetInstaller.UnregisterToolboxItem(@event.Item.GetFullTypeName());
        }
예제 #2
0
        private static void DynamicModuleTypeDeletingEventHandler(IDynamicModuleTypeDeletingEvent @event)
        {
            if (@event == null || @event.Item == null || @event.Item.Provider == null)
            {
                return;
            }

            var transactionName = MvcWidgetInstaller.GetTransactionName(@event.Item);

            MvcWidgetInstaller.TemplateGaneratorAction(
                templateGenerator => templateGenerator.UnregisterTemplates(@event.Item.GetFullTypeName()),
                transactionName);

            MvcWidgetInstaller.UnregisterToolboxItem(@event.Item.GetFullTypeName());
        }