Exemplo n.º 1
0
        internal static ExtensionObjectList MoveExtension(Extensions form, ObjectListUtil.Movement move, ExtensionObjectList extensionObjectList)
        {
            TreeView extensionTreeView = form.extensionTreeView;

            TreeNode        selectedNode      = extensionTreeView.SelectedNode;
            int             selectedNodeIndex = extensionTreeView.SelectedNode.Index;
            ExtensionObject extensionObject   = (ExtensionObject)extensionObjectList[selectedNodeIndex];

            return((ExtensionObjectList)ObjectListUtil.MoveObject(move, extensionObjectList, extensionObject, extensionTreeView, selectedNode, selectedNodeIndex));
        }
Exemplo n.º 2
0
        internal static ToolObjectList MoveTool(Tools form, ObjectListUtil.Movement move, ToolObjectList toolObjectList)
        {
            TreeView toolTreeView = form.toolTreeView;

            TreeNode   selectedNode      = toolTreeView.SelectedNode;
            int        selectedNodeIndex = toolTreeView.SelectedNode.Index;
            ToolObject toolObject        = (ToolObject)toolObjectList[selectedNodeIndex];

            return((ToolObjectList)ObjectListUtil.MoveObject(move, toolObjectList, toolObject, toolTreeView, selectedNode, selectedNodeIndex));
        }
Exemplo n.º 3
0
        internal static TemplateObjectList MoveTemplate(Templates form, ObjectListUtil.Movement move, TemplateObjectList templateObjectList)
        {
            TreeView templateTreeView = form.templateTreeView;

            TreeNode       selectedNode      = templateTreeView.SelectedNode;
            int            selectedNodeIndex = templateTreeView.SelectedNode.Index;
            TemplateObject templateObject    = (TemplateObject)templateObjectList[selectedNodeIndex];

            return((TemplateObjectList)ObjectListUtil.MoveObject(move, templateObjectList, templateObject, templateTreeView, selectedNode, selectedNodeIndex));
        }