Ejemplo n.º 1
0
        public void SetModel(IViewModel i_model)
        {
            mModel = i_model;
            if (i_model == null)
            {
                Debug.LogError("PropertyView has null model: " + PropertyName);
            }

            bool modelHasProperty = mModel.HasProperty(PropertyName);

            if (!modelHasProperty)
            {
                mModel.CreateProperty(PropertyName);
            }

            Property property = mModel.GetProperty(PropertyName);
            Guid     guid     = property.ID;

            SetPropertyID(guid, !modelHasProperty);
        }