使用新框架与技术代替旧框架与技术,实现涂装车间后道标签扫码程序
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using Prism.Events;
|
||||
using Prism.Regions;
|
||||
using RIZO_Application.Core.Mvvm;
|
||||
using RIZO_Application.Services.Interfaces;
|
||||
|
||||
namespace RIZO_Application.Modules.ModuleName.ViewModels
|
||||
{
|
||||
public class ViewAViewModel : RegionViewModelBase
|
||||
{
|
||||
private string _message;
|
||||
private string[] _Datas = new string[] { "123412", "qerqwer" };
|
||||
public string Message
|
||||
{
|
||||
get { return _message; }
|
||||
set { SetProperty(ref _message, value); }
|
||||
}
|
||||
|
||||
public string[] Datas
|
||||
{
|
||||
get { return _Datas; }
|
||||
set { SetProperty(ref _Datas, value); }
|
||||
}
|
||||
private readonly IEventAggregator _eventAggregator;
|
||||
public ViewAViewModel(IRegionManager regionManager, IEventAggregator eventAggregator, IMessageService messageService) :
|
||||
base(regionManager)
|
||||
{
|
||||
_eventAggregator = eventAggregator;
|
||||
Message = messageService.GetMessage();
|
||||
}
|
||||
|
||||
public override void OnNavigatedTo(NavigationContext navigationContext)
|
||||
{
|
||||
//do something
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user