﻿using System.Windows;
using Prism.DryIoc;
using Prism.Ioc;
using SimpSim.NET.WPF.ViewModels;
using SimpSim.NET.WPF.Views;

namespace SimpSim.NET.WPF
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterSingleton<SimpleSimulator>();
            containerRegistry.Register<IUserInputService, UserInputService>();
            containerRegistry.Register<IDialogServiceAdapter, DialogServiceAdapter>();
            containerRegistry.RegisterSingleton<StateSaver>();
            containerRegistry.RegisterDialog<AssemblyEditorDialog, AssemblyEditorDialogViewModel>();
        }
    }
}

﻿using System.Windows;
using Prism.Ioc;
using SimpSim.NET.WPF.ViewModels;
using SimpSim.NET.WPF.Views;

namespace SimpSim.NET.WPF
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterSingleton<SimpleSimulator>();
            containerRegistry.Register<IUserInputService, UserInputService>();
            containerRegistry.Register<IDialogServiceAdapter, DialogServiceAdapter>();
            containerRegistry.RegisterSingleton<StateSaver>();
            containerRegistry.RegisterDialog<AssemblyEditorDialog, AssemblyEditorDialogViewModel>();
        }
    }
}

Remove unneeded reference to PrismApplication base class.
Remove unneeded reference to PrismApplication base class.
