@ -0,0 +1,85 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Globalization; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Data; |
|||
using System.Windows.Media.Imaging; |
|||
|
|||
namespace SunlightCentralizedControlManagement_SCCM_.ConvertMoels |
|||
{ |
|||
internal class StatenToImageConvert : IValueConverter |
|||
{ |
|||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
|||
{ |
|||
switch (value) |
|||
{ |
|||
case "001": |
|||
return new BitmapImage(new Uri("/Lmage/ID001.png", UriKind.Relative));//功能模块001温度控制
|
|||
case "007": |
|||
return new BitmapImage(new Uri("/Lmage/ID007.png", UriKind.Relative));//液位入水
|
|||
case "008": |
|||
return new BitmapImage(new Uri("/Lmage/ID008.png", UriKind.Relative));//流量入水
|
|||
case "013": |
|||
return new BitmapImage(new Uri("/Lmage/ID013.png", UriKind.Relative));//批次水位水洗
|
|||
case "015": |
|||
return new BitmapImage(new Uri("/Lmage/ID015.png", UriKind.Relative));//溢流水洗
|
|||
case "017": |
|||
return new BitmapImage(new Uri("/Lmage/ID017.png", UriKind.Relative));//降温水洗
|
|||
case "020": |
|||
return new BitmapImage(new Uri("/Lmage/ID020.png", UriKind.Relative));//排水
|
|||
case "022": |
|||
return new BitmapImage(new Uri("/Lmage/ID022.png", UriKind.Relative));//动力排水
|
|||
case "031": |
|||
return new BitmapImage(new Uri("/Lmage/ID031.png", UriKind.Relative));//运转时间
|
|||
case "035": |
|||
return new BitmapImage(new Uri("/Lmage/ID035.png", UriKind.Relative));//准备入布
|
|||
case "036": |
|||
return new BitmapImage(new Uri("/Lmage/ID036.png", UriKind.Relative));//准备出布
|
|||
case "039": |
|||
return new BitmapImage(new Uri("/Lmage/ID039.png", UriKind.Relative));//呼叫人工
|
|||
case "040": |
|||
return new BitmapImage(new Uri("/Lmage/ID040.png", UriKind.Relative));//取样
|
|||
case "041": |
|||
return new BitmapImage(new Uri("/Lmage/ID041.png", UriKind.Relative));//结束
|
|||
case "049": |
|||
return new BitmapImage(new Uri("/Lmage/ID049.png", UriKind.Relative));//等待
|
|||
case "050": |
|||
return new BitmapImage(new Uri("/Lmage/ID050.png", UriKind.Relative));//主缸加压
|
|||
case "051": |
|||
return new BitmapImage(new Uri("/Lmage/ID051.png", UriKind.Relative));//主缸减压
|
|||
case "054": |
|||
return new BitmapImage(new Uri("/Lmage/ID054.png", UriKind.Relative));//主泵/风机速度
|
|||
case "055": |
|||
return new BitmapImage(new Uri("/Lmage/ID055.png", UriKind.Relative));//主泵启动
|
|||
case "056": |
|||
return new BitmapImage(new Uri("/Lmage/ID056.png", UriKind.Relative));//
|
|||
case "064": |
|||
return new BitmapImage(new Uri("/Lmage/ID064.png", UriKind.Relative));//
|
|||
case "065": |
|||
return new BitmapImage(new Uri("/Lmage/ID065.png", UriKind.Relative));//
|
|||
case "066": |
|||
return new BitmapImage(new Uri("/Lmage/ID066.png", UriKind.Relative));//
|
|||
case "067": |
|||
return new BitmapImage(new Uri("/Lmage/ID067.png", UriKind.Relative));//
|
|||
case "090": |
|||
return new BitmapImage(new Uri("/Lmage/ID090.png", UriKind.Relative));//
|
|||
case "091": |
|||
return new BitmapImage(new Uri("/Lmage/ID091.png", UriKind.Relative));//
|
|||
case "093": |
|||
return new BitmapImage(new Uri("/Lmage/ID093.png", UriKind.Relative));//
|
|||
case "094": |
|||
return new BitmapImage(new Uri("/Lmage/ID094.png", UriKind.Relative));//
|
|||
default: |
|||
return new BitmapImage(new Uri("", UriKind.Relative)); |
|||
} |
|||
} |
|||
|
|||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
|||
{ |
|||
throw new NotImplementedException(); |
|||
} |
|||
|
|||
} |
|||
} |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 1.9 MiB |
After Width: | Height: | Size: 9.8 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 604 KiB |
After Width: | Height: | Size: 608 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 2.5 MiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 9.7 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 6.7 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 101 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 517 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 531 B |
After Width: | Height: | Size: 791 B |
After Width: | Height: | Size: 509 B |
After Width: | Height: | Size: 549 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 36 KiB |