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); } } }
private void OnClickJump(CUIEvent evt) { NoticeActivity activity = base.view.activity as NoticeActivity; if (activity != null) { base.view.form.Close(); activity.Jump(); } }