Esempio n. 1
0
        void IXmlSerializable.ReadXml(XmlReader reader)
        {
            while (reader.Read())
            {
                string str;
                if ((reader.NodeType == ((XmlNodeType)((int)XmlNodeType.Element))) && ((str = reader.Name) != null))
                {
                    if (str != "IsGreaterThanOrEqualTo")
                    {
                        if (str == "IconValueType")
                        {
                            goto Label_005E;
                        }
                        if (str == "IconValue")
                        {
                            goto Label_007B;
                        }
                    }
                    else
                    {
                        this.isGreaterThanOrEqualTo = (bool)((bool)Serializer.DeserializeObj(typeof(bool), reader));
                    }
                }
                continue;
Label_005E:
                this.iconValueType = (Dt.Cells.Data.IconValueType)Serializer.DeserializeObj(typeof(Dt.Cells.Data.IconValueType), reader);
                continue;
Label_007B:
                this.iconValue = Serializer.DeserializeObj(null, reader);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Creates new icon criteria with the specified operator, scale value, and type.
 /// </summary>
 /// <param name="isGreaterThanOrEqualTo">If set to <c>true</c> use the greater than and equal to operator to calculate the value.</param>
 /// <param name="type">Type of scale value.</param>
 /// <param name="value">Scale value.</param>
 /// <remarks>
 /// If the <paramref name="isGreaterThanOrEqualTo" /> parameter is set to <c>true</c>,
 /// use the greater than and equal to operator to calculate the value.
 /// </remarks>
 public IconCriterion(bool isGreaterThanOrEqualTo, Dt.Cells.Data.IconValueType type, object value)
 {
     this.isGreaterThanOrEqualTo = isGreaterThanOrEqualTo;
     this.iconValueType          = type;
     this.iconValue = value;
 }