Beispiel #1
0
    public AppointmentRuleVo _curAppointmentRuleVo;    //全局的约会数据


    public void InitMyAppointmentData(MyAppointmentRes res)
    {
        if (_userAppointmentVo == null)
        {
            _userAppointmentVo = new List <UserAppointmentVo>();
            foreach (var t in res.UserAppointments)
            {
                _userAppointmentVo.Add(new UserAppointmentVo(t));
            }
        }
        else
        {
            _userAppointmentVo.Clear();
            foreach (var t in res.UserAppointments)
            {
                _userAppointmentVo.Add(new UserAppointmentVo(t));
            }
        }
    }
Beispiel #2
0
 private void OnGetMyAppointment(MyAppointmentRes res)
 {
     LoadingOverlay.Instance.Hide();
     GlobalData.AppointmentData.InitMyAppointmentData(res);
     View.SetData(GlobalData.AppointmentData._appointmentRuleVos, GlobalData.AppointmentData);       //这个生命周期要变,必须要等myappointment读取完数据后才能执行。
 }