/// <summary> /// Updates an actionCommand with a new input (command) /// </summary> /// <param name="devInput">The input command</param> public void UpdateCommandFromInput(String devInput, ActionCls.ActionDevice actionDevice) // ActionCommandCls actionCmd ) { // Apply the input to the ActionTree this.DevInput = ActionCls.BlendInput(devInput, actionDevice); if (ActionCls.IsBlendedInput(this.DevInput) || string.IsNullOrEmpty(devInput)) { this.ActivationMode = new ActivationMode(ActivationMode.Default); // reset activation mode if the input is empty } }
// ctor public ActionTreeNode( ActionTreeNode srcNode ) : base() { if ( srcNode == null ) return; this.Name = srcNode.Name; this.Text = srcNode.Text; this.BackColor = srcNode.BackColor; this.ForeColor = srcNode.ForeColor; this.NodeFont = srcNode.NodeFont; this.ImageKey = srcNode.ImageKey; this.Tag = srcNode.Tag; this.m_action = srcNode.m_action; this.m_actionDevice = srcNode.m_actionDevice; }