| 12345678910111213141516171819202122232425262728293031323334353637 | using System;using System.Globalization;using System.Windows.Controls;using System.Windows.Data;namespace VirgoUI.Client.Models.PMs{    /// <summary>    /// Interaction logic for IOView.xaml    /// </summary>    public partial class PmIoView : UserControl    {        public PmIoView()        {            InitializeComponent();        }    }    public class DisplayNameConverter : IValueConverter    {        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)        {            if (value is string s1)            {                int idx = s1.IndexOf('_');                return s1.Substring(idx + 1);            }            return value;        }        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)        {            throw new NotImplementedException();        }    }}
 |