public UIActionsManager()
 {
     actions = new UIActionCollection(this);
     targets = new Dictionary<Component, UIAction>();
     typesDescription = new Dictionary<Type, UIActionTargetDescriptor>();            
     
     if (!DesignMode) Application.Idle += new EventHandler(Application_Idle);
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UIActionsManager"/> class.
        /// </summary>
        public UIActionsManager()
        {
            actions = new UIActionCollection(this);
            targets = new Dictionary<Component, UIAction>();
            typesDescription = new Dictionary<Type, UIActionTargetDescriptor>();

            if (!DesignMode) Application.Idle += (s, e) => OnUpdate(EventArgs.Empty);
        }