Exemplo n.º 1
0
        private void ShowTooltip()
        {
            if (isParentEnabled())
            {
                tooltip.Activate();
                if (trans != null && trans.CanEnter)
                {
                    trans.Enter();
                }

                if (speech != null)
                {
#if AZURE_SPEECHSDK
                    speech.Play();
#endif
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// If the control is not disabled, sets the open state.
        /// </summary>
        /// <param name="value">If set to <c>true</c> value.</param>
        public void SetOpen(bool value)
        {
            if (!IsDisabled && Open != value)
            {
                Open = value;
                if (stater == null)
                {
                    payload.SetActive(Open);
                }
                else if (value)
                {
                    payload.Activate();
                    stater.Enter();
                }
                else
                {
                    stater.Exit();
                    payload.Deactivate();
                }

                ShowState(value ? "Opened" : "Closed");
            }
        }