public override void Calculate()
 {
     var comboBox = (ComboBox)ControlElements[1];
     if (_comboBox.SelectedItem == null) return;
     var vplType = VplDataType.GetVplDataType().FirstOrDefault(x => x.Name == comboBox.SelectedItem.ToString());
     var input = InputPorts[0];
     var output = Convert.ChangeType(input.Text, vplType.Type);
     OutputPorts[0].Data = output;
 }
        public DataTypeConversion(Core.VplControl hostCanvas)
            : base(hostCanvas)
        {
            AddInputPortToNode("Input1", typeof(object), true);
            AddOutputPortToNode("test", typeof(object));
            _comboBox = new ComboBox()
            {
                ItemsSource = VplDataType.GetVplDataType().Select(x => x.Name).ToList(),
                Width = 150

            };
            AddControlToNode(_comboBox);
        }