34 lines
924 B
C#
34 lines
924 B
C#
using System.Configuration;
|
|
using System.Data;
|
|
using System.IO;
|
|
using System.Windows;
|
|
using UIStandard.Start.Views;
|
|
using Prism.DryIoc;
|
|
using Prism.Ioc;
|
|
|
|
namespace UIStandard.Start
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for App.xaml
|
|
/// </summary>
|
|
public partial class App : PrismApplication
|
|
{
|
|
protected override Window CreateShell()
|
|
{
|
|
return Container.Resolve<MainView>();
|
|
}
|
|
|
|
protected override void RegisterTypes(IContainerRegistry containerRegistry)
|
|
{
|
|
//注册成弹窗对象
|
|
containerRegistry.RegisterDialog<UserLoginView>();
|
|
containerRegistry.RegisterDialogWindow<DialogWindow>();
|
|
|
|
//containerRegistry.RegisterDialog<MultiModeLoginView>();
|
|
//containerRegistry.RegisterDialog<SerialPortLoginView>();
|
|
//containerRegistry.RegisterDialog<SocketLoginView>();
|
|
}
|
|
}
|
|
|
|
}
|