| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using OHV.Module.Interactivity;
- using Prism.Commands;
- using Prism.Events;
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Input;
- using VehicleControlSystem;
- namespace OHV.Module.MainViews.Views
- {
- public class UnitViewModel : BindableBase
- {
- IEventAggregator eventAggregator = null;
- VCSystem vcSystem = null;
- MessageController msgController = null;
- public ICommand ServoConfigCommand { get; set; }
- public ICommand InoutPupup { get; set; }
- public ICommand BatteryPopup { get; set; }
- public UnitViewModel( IEventAggregator _ea , VCSystem _vcSystem , MessageController _msgController )
- {
- this.eventAggregator = _ea;
- this.vcSystem = _vcSystem;
- this.msgController = _msgController;
- this.ServoConfigCommand = new DelegateCommand( ExecuteServoConfigCommand );
- this.InoutPupup = new DelegateCommand( ExecuteInOutCommand );
- this.BatteryPopup = new DelegateCommand( ExecuteBatteryCommand );
- }
- private void ExecuteBatteryCommand( )
- {
- this.msgController.ShowBatteryPopupView();
- }
- private void ExecuteInOutCommand( )
- {
- this.msgController.ShowInOutPopupView();
- }
- private void ExecuteServoConfigCommand( )
- {
- this.msgController.ShowServoConfigPopupView();
- }
- public void Init()
- {
- }
- }
- }
|