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());
        }
Exemple #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());
        }