Ejemplo n.º 1
0
        public override void Validate()
        {
            this._datePeriod.text  = base.view.activity.PeriodText;
            this._descContent.text = base.view.activity.Content;
            NoticeActivity activity = base.view.activity as NoticeActivity;

            if (activity != null)
            {
                if (activity.timeState == Activity.TimeState.Going)
                {
                    string jumpLabel = activity.JumpLabel;
                    if (string.IsNullOrEmpty(jumpLabel))
                    {
                        this._jumpBtn.CustomSetActive(false);
                    }
                    else
                    {
                        this._jumpBtn.CustomSetActive(true);
                        this._jumpBtnLabel.text = jumpLabel;
                    }
                }
                else
                {
                    this._jumpBtn.CustomSetActive(false);
                }
            }
        }
Ejemplo n.º 2
0
        private void OnClickJump(CUIEvent evt)
        {
            NoticeActivity activity = base.view.activity as NoticeActivity;

            if (activity != null)
            {
                base.view.form.Close();
                activity.Jump();
            }
        }