|
|
@@ -2,6 +2,7 @@ |
|
|
|
using BPASmartClient.SCADAControl; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.ComponentModel; |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
@@ -33,6 +34,14 @@ namespace BPASmartClient.SCADAControl.CustomerControls |
|
|
|
Width = 80; |
|
|
|
Height = 80; |
|
|
|
} |
|
|
|
[Category("事件")] |
|
|
|
public string ClickExec |
|
|
|
{ |
|
|
|
get { return (string)GetValue(ClickExecProperty); } |
|
|
|
set { SetValue(ClickExecProperty, value); } |
|
|
|
} |
|
|
|
public static readonly DependencyProperty ClickExecProperty = |
|
|
|
DependencyProperty.Register("ClickExec", typeof(string), typeof(TheImage), new PropertyMetadata(string.Empty)); |
|
|
|
/// <summary> |
|
|
|
/// 启动路径 |
|
|
|
/// </summary> |
|
|
@@ -81,7 +90,12 @@ namespace BPASmartClient.SCADAControl.CustomerControls |
|
|
|
Source = new BitmapImage(new Uri(ImageStartPath)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.MouseLeftButtonDown += TheImage_MouseLeftButtonDown; |
|
|
|
} |
|
|
|
|
|
|
|
private void TheImage_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) |
|
|
|
{ |
|
|
|
Config.GetInstance().RunJsScipt(ClickExec); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|