| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using OHV.Module.Interactivity;
- using OHV.SqliteDAL;
- 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 TeachViewModel : BindableBase
- {
- IEventAggregator eventAggregator = null;
- VCSystem vcSystem = null;
- MessageController msgController = null;
- SqliteManager sql = null;
- public ICommand ServoConfigCommand { get; set; }
- public ICommand JogPopup { get; set; }
- public ICommand LockPopup { get; set; }
- public ICommand DriveTeachPopup { get; set; }
- public ICommand InOutControlPopup { get; set; }
- public TeachViewModel( IEventAggregator _ea , VCSystem _vcSystem , MessageController _msgController, SqliteManager _sql )
- {
- this.eventAggregator = _ea;
- this.vcSystem = _vcSystem;
- this.msgController = _msgController;
- this.sql = _sql;
- this.JogPopup = new DelegateCommand( ExecuteServoConfigCommand );
- this.LockPopup = new DelegateCommand( ExecuteLockPopupCommand );
- this.DriveTeachPopup = new DelegateCommand( ExecuteDriveTeachPopupCommand );
- this.InOutControlPopup = new DelegateCommand( ExecuteInOutControlPopup );
- }
- private void ExecuteInOutControlPopup( )
- {
- this.msgController.ShowInOutControlPopupView();
- }
- private void ExecuteDriveTeachPopupCommand( )
- {
- this.msgController.ShowDrivePopupView();
- }
- private void ExecuteLockPopupCommand( )
- {
- this.msgController.ShowLockPopupView();
- }
- private void ExecuteServoConfigCommand( )
- {
- this.msgController.ShowServoConfigPopupView();
- }
- private void ExecuteMapCommand( )
- {
- this.msgController.ShowMapPopupView();
- }
- public void Init( )
- {
- }
- }
- }
|