1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //----------------------------------------------------------------
5 namespace System.Activities.Presentation.Hosting
7 using System.Collections.Generic;
9 //commanding interface - used for integration of workflow designer actions (like context menu) with custom provided
10 //implementation - i.e. property browser service, debugging service, etc.
11 public interface ICommandService
13 //returns if given command id is supported
14 bool IsCommandSupported(int commandId);
15 //verifies if given command can be executed, throws NotSupportedExecption if command is not supported
16 bool CanExecuteCommand(int commandId);
17 //executes command with given id and parameters, throws NotSupportedException if command is not supported
18 void ExecuteCommand(int commandId, Dictionary<string, object> parameters);
21 public static class CommandValues
23 public const int ShowProperties = 5;
24 public const int InsertBreakpoint = 6;
25 public const int DeleteBreakpoint = 7;
26 public const int EnableBreakpoint = 8;
27 public const int DisableBreakpoint = 9;