首次提交:添加src文件夹代码

This commit is contained in:
2026-02-27 14:02:43 +08:00
commit d330cfbca7
4184 changed files with 5546478 additions and 0 deletions

View 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();
}
}
}