Exemplo n.º 1
0
        void HandleActionProviderStateChanged(object sender, EventArgs e)
        {
            var actions = ActionProviders.SelectMany(t => t.Actions).ToArray();

            if (SyncContext == null)
            {
                OnAvailableActionsChanged(actions);
            }
            else
            {
                SyncContext.Post(t => OnAvailableActionsChanged(actions), null);
            }
        }
 public static void AddActionProvider(IActionType ac)
 {
     ActionProviders.Add(ac.DisplayName, ac);
 }