|
|
@@ -1,4 +1,5 @@
|
|
|
-using Prism.Commands;
|
|
|
+using OHV.Common.Events;
|
|
|
+using Prism.Commands;
|
|
|
using Prism.Events;
|
|
|
using Prism.Mvvm;
|
|
|
using Prism.Services.Dialogs;
|
|
|
@@ -113,6 +114,19 @@ namespace OHV.Module.Interactivity.PopUp
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private int _obstacleDrive;
|
|
|
+ public int ObstacleDrive
|
|
|
+ {
|
|
|
+ get { return this._obstacleDrive; }
|
|
|
+ set { this.SetProperty( ref this._obstacleDrive , value ); }
|
|
|
+ }
|
|
|
+ private int _obstacleCurve;
|
|
|
+ public int ObstacleCurve
|
|
|
+ {
|
|
|
+ get { return this._obstacleCurve; }
|
|
|
+ set { this.SetProperty( ref this._obstacleCurve , value ); }
|
|
|
+ }
|
|
|
+
|
|
|
public ICommand DetectPatternSave { get; set; }
|
|
|
public ICommand ResultPattern { get; set; }
|
|
|
public ICommand PatternResultKyein { get; set; }
|
|
|
@@ -126,6 +140,9 @@ namespace OHV.Module.Interactivity.PopUp
|
|
|
public OpticalReadingConfigViewModel( IEventAggregator _ea, MessageController _msg )
|
|
|
{
|
|
|
this.eventAggregator = _ea;
|
|
|
+ this.eventAggregator.GetEvent<GUIMessagePubSubEvent>().Unsubscribe( UICallbackCommunication );
|
|
|
+ this.eventAggregator.GetEvent<GUIMessagePubSubEvent>().Subscribe( UICallbackCommunication, ThreadOption.UIThread );
|
|
|
+
|
|
|
this.messageController = _msg;
|
|
|
|
|
|
this.DetectPatternSave = new DelegateCommand( ExecuteDetectPatternSave );
|
|
|
@@ -133,6 +150,11 @@ namespace OHV.Module.Interactivity.PopUp
|
|
|
this.PatternResultKyein = new DelegateCommand<object>( ExecutePatternResultKyein );
|
|
|
}
|
|
|
|
|
|
+ private void UICallbackCommunication( GUIMessageEventArgs obj )
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
private void ExecutePatternResultKyein( object obj)
|
|
|
{
|
|
|
var numpad = new CalcuratorView();
|