Added function in the panel for user to be added new function
This commit is contained in:
@@ -275,6 +275,24 @@ namespace Nodify.Calculator
|
||||
//_o.Input.AddRange(input);
|
||||
return _o;
|
||||
case OperationType.System:
|
||||
if (info.sysOp == SystemOperations.FUNCTION)
|
||||
{
|
||||
var funcOp = new FunctionOperationViewModel
|
||||
{
|
||||
Title = info.Title,
|
||||
FunctionName = info.Title
|
||||
};
|
||||
// Add flow connectors (triangle)
|
||||
var funcFlowIn = new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle };
|
||||
var funcFlowOut = new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle, IsInput = false };
|
||||
funcOp.Input.Add(funcFlowIn);
|
||||
funcOp.Output.Add(funcFlowOut);
|
||||
|
||||
// Configure typed input/output parameters
|
||||
funcOp.ConfigureParameters(info.FunctionInputs, info.FunctionOutputs);
|
||||
return funcOp;
|
||||
}
|
||||
|
||||
if (info.sysOp == SystemOperations.AUTH)
|
||||
{
|
||||
var authOp = new AuthOperationViewModel
|
||||
|
||||
Reference in New Issue
Block a user