Exemple #1
0
 internal void method_1(XmlReader xmlReader_0)
 {
     foreach (XmlReaderAttributeItem item in xmlReader_0.GetAttributes())
     {
         string localName = item.LocalName;
         if (localName != null)
         {
             if (localName != "Color")
             {
                 if (!(localName == "PatternColor"))
                 {
                     if (localName == "Pattern")
                     {
                         this.Pattern = ObjectExtensions.ParseEnum <Aisino.Framework.Plugin.Core.ExcelXml.Pattern>(item.Value);
                     }
                 }
                 else
                 {
                     this.PatternColor = XmlStyle.smethod_1(item.Value);
                 }
             }
             else
             {
                 this.Color = XmlStyle.smethod_1(item.Value);
             }
         }
     }
 }
Exemple #2
0
        internal void method_1(XmlReader xmlReader_0)
        {
            foreach (XmlReaderAttributeItem item in xmlReader_0.GetAttributes())
            {
                switch (item.LocalName)
                {
                case "FontName":
                    this.Name = item.Value;
                    break;

                case "Size":
                    int num;
                    if (item.Value.ParseToInt <int>(out num))
                    {
                        this.Size = num;
                    }
                    break;

                case "Color":
                    this.Color = XmlStyle.smethod_1(item.Value);
                    break;

                case "Bold":
                    this.Bold = item.Value == "1";
                    break;

                case "Italic":
                    this.Italic = item.Value == "1";
                    break;

                case "Underline":
                    this.Underline = item.Value == "Single";
                    break;

                case "Strikeout":
                    this.Strikeout = item.Value == "1";
                    break;
                }
            }
        }