Ejemplo n.º 1
0
 void OnMenuActionStateChanged(WorkflowAction action)
 {
   Invalidate();
 }
Ejemplo n.º 2
0
 protected static int Compare(WorkflowAction a, WorkflowAction b)
 {
   int res = Compare(a.DisplayCategory, b.DisplayCategory);
   if (res != 0)
     return res;
   return Compare(a.SortOrder, b.SortOrder);
 }
Ejemplo n.º 3
0
 protected void RegisterActionChangeHandler(NavigationContext context, WorkflowAction action)
 {
   lock (context.SyncRoot)
   {
     object regs;
     ICollection<WorkflowAction> registrations;
     if (context.ContextVariables.TryGetValue(Consts.KEY_REGISTERED_ACTIONS, out regs))
       registrations = (ICollection<WorkflowAction>) regs;
     else
       context.ContextVariables[Consts.KEY_REGISTERED_ACTIONS] = registrations = new List<WorkflowAction>();
     action.StateChanged += OnMenuActionStateChanged;
     registrations.Add(action);
   }
 }
Ejemplo n.º 4
0
 private bool IsManuallyPositioned(WorkflowAction wfAction)
 {
   return _menuSettings.Settings.MenuItems.Keys.Any(key => _menuSettings.Settings.MenuItems[key].ContainsKey(wfAction.ActionId));
 }