Example #1
0
        /// <summary>
        /// Remove an element from the menu
        /// </summary>
        public void RemoveElement(string elementId)
        {
            MenuElement e = FetchElement(elementId);

            if (e != null)
            {
                elements.Remove(e);
            }
        }
Example #2
0
        /// <summary>
        /// Insert text into a textbox on the menu
        /// </summary>
        /// <param name="elementId">textbox id</param>
        /// <param name="text">textbox text</param>
        public void InsertText(string elementId, string text)
        {
            MenuElement e = FetchElement(elementId);

            if (e != null)
            {
                e.text = text;
            }
        }