banboshi_V1/halftoneproject-master/Code/Utils/EnumData.cs

36 lines
820 B
C#
Raw Permalink Normal View History

2023-10-31 13:19:29 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ProductionControl.Utils
{
public class EnumData
{
public class EnumClass
{
public int EnumValue { get; set; }
public string EnumName { get; set; }
}
//public List<T> BindData(ComboBox cmb, T value)
//{
// List list = new List();
// foreach (int itemVal in Enum.GetValues(typeof(EnumClass)))
// {
// EnumClass wd = new EnumClass();
// wd.EnumValue = itemVal;
// wd.EnumName = Enum..GetName(typeof(EnumClass), itemVal);
// list.Add(wd);
// }
//}
}
}