Ejemplo n.º 1
0
 public void PerformLayout()
 {
     if (mParent != null)
     {
         mParent.PerformLayout();
     }
     else
     {
         ExecuteLayout();
     }
 }
        public override void SetData(DataBaseObject data)
        {
            mData = data as DataAssignment;

            bool isActivity = mData.EndAt.HasValue && mData.StartAt.HasValue;

            mTopIcon.sprite = isActivity ? mActivitySprite : mAssignmentSprite;

            mTitleText.text    = mData.Name;
            mCategoryText.text = mData.Category.Name;

            mContentText.text = AssignmentContentFormat.Create(mData, true);

            mLayout.PerformLayout();

            UpdateBox();
        }