using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;

namespace ModuleC
{
    public class ModuleC : IModule
    {
        protected IRegionManager RegionManager { get; private set; }
        protected IUnityContainer Container { get; private set; }
        public ModuleC(IRegionManager regionManager, IUnityContainer container)
        {
            Container = container;
            RegionManager = regionManager;
        }

        public void Initialize()
        {
            Container.RegisterType<Object, ModuleCView>(typeof(ModuleCView).Name);
            RegionManager.RegisterViewWithRegion("MenuRegionC", typeof(ButtonViewC));
        }
    }
}
