private void updateMethodHeader() { //public double getData(){ //public static boolean CustomConversionUpdate2(DataType long arg0) { string methodHeader = "public"; string staticText = ""; string outputTypeText = ""; string methodNameText = ""; string argumentsText = "("; staticText = InputTypes.Empty() ? "" : " static"; outputTypeText = " " + OutputType.MinimizedName; methodNameText = InputTypes.Empty() ? " getData" : " " + ElementName.RemoveAll(" ", "_"); for (int i = 0; i < InputTypes.Count; i++) { if (i != 0) { argumentsText += ", "; } argumentsText += InputTypes[i].MinimizedName + " arg" + i; } argumentsText = argumentsText + ")"; methodHeader = methodHeader + staticText + outputTypeText + methodNameText + argumentsText + " {"; tempTbHeader.Text = methodHeader; }
public AbstractNodeClass GenerateClassFromInputs() { NodeType type = InputTypes.Empty() ? NodeType.Sensor : NodeType.Transformation; switch (type) { case NodeType.Transformation: return(GenerateClassAsTransformation()); case NodeType.Sensor: return(GenerateClassAsDataSource()); case NodeType.Combined: default: throw new ArgumentException("Can not create " + type.ToString() + " Element in the Creation GUI!"); } }