Example #1
0
        private void handleErrorFromRFID(string errorMessage)
        {
            MessageBox.Show(errorMessage);
            //当串口设置出错时提示信息并转移到串口设置界面
            //this.regionManager.RequestNavigate("MainRegion", new Uri("SystemSettingView", UriKind.Relative));
            NavBarViewModel vm = this.container.Resolve <NavBarViewModel>();

            vm.switchSystemSettingView();
        }
 public NavBarView(IUnityContainer container,NavBarViewModel viewModel)
 {
     InitializeComponent();
     this.container = container;
     this.DataContext = viewModel;
 }