Esempio n. 1
0
    void ContextCallback(object obj)
    {
        switch (obj.ToString())
        {
        case "0":
            PopupWindow.InitNodePopUp();
            break;

        case "1":
            NodeUtils.LoadGraph();
            break;

        case "2":
            NodeUtils.UnloadGraph();
            break;

        case "3":
            NodeUtils.CreateNode(currentGraph, NodeType.FLOAT, mousePosition);
            break;

        case "4":
            NodeUtils.CreateNode(currentGraph, NodeType.ADD, mousePosition);
            break;

        case "5":
            NodeUtils.DeleteNode(deleteNodeID, currentGraph);
            break;

        default:
            break;
        }
    }