public DataValueCollection(DataValueCRIList expressions, DataValueInstanceList instances) { this.m_expressions = expressions; this.m_instances = instances; Global.Tracer.Assert(null != this.m_expressions); Global.Tracer.Assert(this.m_instances == null || this.m_instances.Count == this.m_expressions.Count); }
public DataValueInstanceList ExtractRenderStyles() { DataValueInstanceList dataValueInstanceList = null; if (this.m_nameMap != null) { Global.Tracer.Assert(this.m_valueCollection != null && this.m_nameMap.Count == this.m_valueCollection.Count); dataValueInstanceList = new DataValueInstanceList(this.m_nameMap.Count); IDictionaryEnumerator enumerator = this.m_nameMap.GetEnumerator(); while (enumerator.MoveNext()) { DataValueInstance dataValueInstance = new DataValueInstance(); dataValueInstance.Name = (enumerator.Key as string); object obj = this.m_valueCollection[(int)enumerator.Value]; if (obj == null) { dataValueInstance.Value = null; } else if (obj is string) { dataValueInstance.Value = string.Copy(obj as string); } else if (obj is int) { dataValueInstance.Value = (int)obj; } else if (obj is ReportSize) { dataValueInstance.Value = ((ReportSize)obj).DeepClone(); } dataValueInstanceList.Add(dataValueInstance); } } return(dataValueInstanceList); }
internal DataValueCollection(DataValueCRIList expressions, DataValueInstanceList instances) { m_expressions = expressions; m_instances = instances; Global.Tracer.Assert(m_expressions != null); Global.Tracer.Assert(m_instances == null || m_instances.Count == m_expressions.Count); }
public CustomPropertyCollection(DataValueList expressions, DataValueInstanceList instances) { this.m_expressions = expressions; this.m_instances = instances; Global.Tracer.Assert(null != this.m_expressions); Global.Tracer.Assert(this.m_instances == null || this.m_instances.Count == this.m_expressions.Count); this.m_uniqueNames = new Hashtable(this.m_expressions.Count); this.m_expressionIndex = new IntList(this.m_expressions.Count); }
internal CustomPropertyCollection(DataValueList expressions, DataValueInstanceList instances) { m_expressions = expressions; m_instances = instances; Global.Tracer.Assert(m_expressions != null); Global.Tracer.Assert(m_instances == null || m_instances.Count == m_expressions.Count); m_uniqueNames = new Hashtable(m_expressions.Count); m_expressionIndex = new IntList(m_expressions.Count); }
internal void ExtractRenderStyles(out DataValueInstanceList sharedStyles, out DataValueInstanceList nonSharedStyles) { sharedStyles = null; nonSharedStyles = null; if (m_sharedProperties != null) { sharedStyles = m_sharedProperties.ExtractRenderStyles(); } if (m_nonSharedProperties != null) { nonSharedStyles = m_nonSharedProperties.ExtractRenderStyles(); } }
public CustomPropertyCollection() { this.m_isCustomControl = true; this.m_instances = new DataValueInstanceList(); this.m_uniqueNames = new Hashtable(); }