예제 #1
0
파일: XamlExporter.cs 프로젝트: 15831944/WW
 public Class353(XamlExporter exporter)
 {
     this.xamlExporter_0 = exporter;
     this.double_0       = exporter.double_1;
     this.double_1       = 0.5 * this.double_0;
     this.string_0       = this.double_0.ToString(exporter.string_2, (IFormatProvider)CultureInfo.InvariantCulture);
     this.string_1       = (0.5 * this.double_0).ToString(exporter.string_2, (IFormatProvider)CultureInfo.InvariantCulture);
 }
예제 #2
0
파일: XamlExporter.cs 프로젝트: 15831944/WW
            private static string smethod_0(XamlExporter exporter, ArgbColor color)
            {
                if (exporter.nullable_0.HasValue)
                {
                    color = exporter.nullable_0.Value;
                }
                else if (exporter.bool_0 && color.Argb == exporter.argbColor_0.Argb)
                {
                    color = exporter.argbColor_1;
                }
                StringBuilder stringBuilder = new StringBuilder();

                stringBuilder.Append('#');
                stringBuilder.Append(color.R.ToString("X2"));
                stringBuilder.Append(color.G.ToString("X2"));
                stringBuilder.Append(color.B.ToString("X2"));
                return(stringBuilder.ToString());
            }
예제 #3
0
파일: XamlExporter.cs 프로젝트: 15831944/WW
            public void Write(XamlExporter exporter)
            {
                XmlTextWriter xmlTextWriter0 = exporter.xmlTextWriter_0;

                xmlTextWriter0.WriteStartElement("Path");
                xmlTextWriter0.WriteAttributeString("Data", this.stringBuilder_0.ToString());
                string str = XamlExporter.Class354.smethod_0(exporter, this.argbColor_0);

                if (this.bool_1)
                {
                    xmlTextWriter0.WriteAttributeString("Fill", str);
                }
                if (this.bool_0)
                {
                    xmlTextWriter0.WriteAttributeString("Stroke", str);
                    xmlTextWriter0.WriteAttributeString("StrokeThickness", this.double_0.ToString(exporter.string_2, (IFormatProvider)CultureInfo.InvariantCulture));
                }
                xmlTextWriter0.WriteEndElement();
            }