//private readonly Dictionary<string, decimal> _pointList = new Dictionary<string, decimal>() //{ // {"Point1", Convert.ToDecimal(0.0 ) }, // {"Point2", Convert.ToDecimal(0.1 ) }, // {"Point3", Convert.ToDecimal(0.2 ) }, // {"Point4", Convert.ToDecimal(0.3 ) }, // {"Point5", Convert.ToDecimal(0.4 ) }, //}; public GetFloatPoint(Core.VplControl hostCanvas) : base(hostCanvas) { AddOutputPortToNode("Float Point Value", typeof(float)); _cmbobox = new ComboBox() { Width = 150, ItemsSource = SamplePoints.GetPoints().Select(x => x.Name).ToList(), }; _cmbobox.SelectionChanged += _cmbobox_SelectionChanged; AddControlToNode(_cmbobox); }
public SetFloatPoint(Core.VplControl hostCanvas) : base(hostCanvas) { AddInputPortToNode("Object", typeof(object)); _cmbobox = new ComboBox() { Width = 150, ItemsSource = SamplePoints.GetPoints().Select(x => x.Name).ToList(), }; var textBlock = new TextBox() { TextWrapping = TextWrapping.Wrap, FontSize = 14, Padding = new Thickness(5), }; AddControlToNode(_cmbobox); AddControlToNode(textBlock); _cmbobox.SelectionChanged += _cmbobox_SelectionChanged; }