/* * Copyright (c) 2025 LG Electronics Inc. * SPDX-License-Identifier: LicenseRef-LGE-Proprietary */ using System; using System.Globalization; using System.Windows.Data; using VisionCommon; namespace VisionCommonUI { public class RoiIdxToNumConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return (int)(eRoiIdx)value; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { int roiIdx = (int)value; return (eRoiIdx)roiIdx; } } }