首次提交:添加src文件夹代码
This commit is contained in:
23
Cowain.Bake.UI/UserManagerment/Views/DeviceModeView.xaml.cs
Normal file
23
Cowain.Bake.UI/UserManagerment/Views/DeviceModeView.xaml.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Cowain.Bake.UI.UserManagerment.ViewModels;
|
||||
using Prism.Events;
|
||||
using System.Windows;
|
||||
using Unity;
|
||||
using static Cowain.Bake.UI.UserManagerment.ViewModels.DeviceModeViewModel;
|
||||
|
||||
namespace Cowain.Bake.UI.UserManagerment.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// DeviceModeView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DeviceModeView : Window
|
||||
{
|
||||
private IEventAggregator _eventAggregator;
|
||||
public DeviceModeView(IUnityContainer unityContainer, IEventAggregator eventAggregator)
|
||||
{
|
||||
InitializeComponent();
|
||||
_eventAggregator = eventAggregator;
|
||||
_eventAggregator.GetEvent<CloseWindowEvent>().Subscribe(() => Close());
|
||||
unityContainer.Resolve<DeviceModeViewModel>().Refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user