Exemple #1
0
        } // SetProperty

        public Panel SetNullProperty(PanelPropertyName propertyName)
        {
            PanelProperty pp = this.panelProperties.FirstOrDefault(p => p.propertyName == propertyName);

            if (pp == null)
            {
                pp = this.AddProperty(propertyName, PanelPropertyType.none, null);
            }
            pp.ApplyData(null, PanelPropertyType.none);
            return(this);
        } // SetNullProperty
Exemple #2
0
        public Panel SetProperty(PanelPropertyName propertyName, System.Object data, PanelPropertyType propertyType = PanelPropertyType.none)
        {
            //Debug.Log(string.Format("[Panel][SetProperty] propertyName = '{0}' | this.panelProperties[0].propertyName = '{1}'", propertyName, this.panelProperties[0].propertyName));
            PanelProperty pp = this.panelProperties.FirstOrDefault(p => p.propertyName == propertyName);

            if (pp == null)
            {
                pp = this.AddProperty(propertyName, propertyType, data);
            }
            pp.ApplyData(data, propertyType);
            return(this);
        } // SetProperty