11 changed files with 155 additions and 34 deletions
@ -0,0 +1,81 @@ |
|||||
|
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 DyeingComputer.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": |
||||
|
|
||||
|
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 "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 "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: 18 KiB |
After Width: | Height: | Size: 1.9 MiB |
After Width: | Height: | Size: 2.5 MiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 30 KiB |
Loading…
Reference in new issue