|
|
@@ -72,16 +72,16 @@ namespace BPASmartClient.SCADAControl.CustomerControls |
|
|
|
switch (StatusValue) |
|
|
|
{ |
|
|
|
case 0: |
|
|
|
image.Source = new BitmapImage(new Uri("pack://application:,,,/Images/State0.png", UriKind.Absolute)); |
|
|
|
image.Source = new BitmapImage(new Uri(@"/BPASmartClient.SCADAControl;component/Images/State0.png", UriKind.Relative)); |
|
|
|
break; |
|
|
|
case -1: |
|
|
|
image.Source = new BitmapImage(new Uri("pack://application:,,,/Images/State11.png", UriKind.Absolute)); |
|
|
|
image.Source = new BitmapImage(new Uri(@"/BPASmartClient.SCADAControl;component/Images/State11.png", UriKind.Relative)); |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
image.Source = new BitmapImage(new Uri("pack://application:,,,/Images/State1.png", UriKind.Absolute)); |
|
|
|
image.Source = new BitmapImage(new Uri(@"/BPASmartClient.SCADAControl;component/Images/State1.png", UriKind.Relative)); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
image.Source = new BitmapImage(new Uri("pack://application:,,,/Images/State2.png", UriKind.Absolute)); |
|
|
|
image.Source = new BitmapImage(new Uri(@"/BPASmartClient.SCADAControl;component/Images/State2.png", UriKind.Relative)); |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|