Example #1
0
        private static int RunExec(Guid commandSet, uint commandId, ProjectNodeCommandHandler commandHandler)
        {
            var selectedNodes = new List <WorkspaceVisualNodeBase>();
            var result        = commandHandler.Exec(selection: selectedNodes, commandSet, commandId, (uint)OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT, IntPtr.Zero, IntPtr.Zero);

            return(result);
        }
Example #2
0
        private static bool RunQueryStatus(Guid commandSet, uint commandId, ProjectNodeCommandHandler commandHandler, ref uint commandFlags)
        {
            var    selectedNodes = new List <WorkspaceVisualNodeBase>();
            string customTitle   = string.Empty;
            var    result        = commandHandler.QueryStatus(selection: selectedNodes, commandSet, commandId, ref commandFlags, ref customTitle);

            return(result);
        }