1234567891011121314151617181920212223242526272829303132 |
- using LogoForceTestApp.Modules.MainModule.Enums;
- using System;
- using System.Globalization;
- using System.Windows.Data;
- namespace LogoForceTestApp
- {
- internal class JugetoStringConvet : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value is RunResultState juge)
- {
- var content = juge switch
- {
- RunResultState.NG => "NG",
- RunResultState.OK => "OK",
- RunResultState.NOTDEFINED => "Wait",
- _ => throw new NotImplementedException()
- };
- return content;
- }
- return "Wait";
- }
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|