public void SetEmphasizeAfterWindowOpened(Transform parent, Action actionWinOpened)
    {
        CommonDialog componentInParent = base.GetComponentInParent <CommonDialog>();

        if (null != componentInParent)
        {
            componentInParent.SetOnOpened(delegate(int x)
            {
                this.SetEmphasize(parent);
                actionWinOpened();
            });
        }
        else
        {
            this.SetEmphasize(parent);
            actionWinOpened();
        }
    }