public UI_HWC_Tools() { InitializeComponent(); Data = FindResource("datahandler") as UI_HWC_ToolsDataHandler; List<string> l = new List<string>(); var values = Enum.GetValues(typeof(ToolType)).Cast<ToolType>(); foreach (var v in values) { l.Add(v.ToString()); } Data.ToolType = l; }
public UI_HWC_Tools() { InitializeComponent(); Data = FindResource("datahandler") as UI_HWC_ToolsDataHandler; List <string> l = new List <string>(); var values = Enum.GetValues(typeof(ToolType)).Cast <ToolType>(); foreach (var v in values) { l.Add(v.ToString()); } Data.ToolType = l; }