using DeviceEditModule.ViewModels;
using DeviceEditModule.Views;

namespace DeviceEditModule
{
    public class DeviceEditModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            // DialogMangerView 作为弹窗宿主，注册为 Dialog（支持 _dialogService.Show）
            containerRegistry.RegisterDialog<DialogMangerView, DialogMangerViewModel>("DialogMangerView");

            // 设备编辑 View 注册为 Navigation（被动态解析后作为 Tab 内容嵌入 DialogMangerView）
            containerRegistry.RegisterForNavigation<IT7800EView>("IT7800EView");
            containerRegistry.RegisterForNavigation<N36200View>("N36200View");
            containerRegistry.RegisterForNavigation<N36600View>("N36600View");
            containerRegistry.RegisterForNavigation<N69200View>("N69200View");
            containerRegistry.RegisterForNavigation<SDS2000X_HDView>("SDS2000X_HDView");
            containerRegistry.RegisterForNavigation<SPAW7000View>("SPAW7000View");
            containerRegistry.Register<IT7800EViewModel>();
            containerRegistry.Register<N36200ViewModel>();
            containerRegistry.Register<N36600ViewModel>();
            containerRegistry.Register<N69200ViewModel>();
            containerRegistry.Register<SDS2000X_HDViewModel>();
            containerRegistry.Register<SPAW7000ViewModel>();
        }
    }
}
