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
Exemple #3
0
        private PanelProperty AddProperty(PanelPropertyName propertyName, PanelPropertyType propertyType, System.Object data)
        {
            PanelProperty property = new PanelProperty()
            {
                propertyName = propertyName,
                propertyType = propertyType,
                propertyData = data
            };

            this.panelProperties.Add(property);
            return(property);
        }