private void ShowTooltip() { if (isParentEnabled()) { tooltip.Activate(); if (trans != null && trans.CanEnter) { trans.Enter(); } if (speech != null) { #if AZURE_SPEECHSDK speech.Play(); #endif } } }
/// <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"); } }