public static string MakeCssScript(special_xml Sxml, type Mime_Type, string html_type, string type_name, css_variables[] Variables, string[] Values) { string tStrOpen = "<" + EnumUtil.GetDescription(Sxml) + " type=" + EnumUtil.GetDescription(Mime_Type) + ">"; string tStrMiddle = ""; if (html_type != "#") { tStrMiddle = "" + html_type + "." + type_name + " {"+"\n"; } else { tStrMiddle = "" + html_type + type_name + " {"+"\n"; } int i = 0; foreach (css_variables str in Variables) { tStrMiddle += EnumUtil.GetDescription(str) + ":" + Values[i] + ";" + "\n"; if(i == (Variables.Length - 1)) { tStrMiddle += "}"; } i++; } string tStrEnd = "</" + EnumUtil.GetDescription(Sxml) + ">"; return tStrOpen + "\n" + tStrMiddle + "\n" + tStrEnd + "\n"; }
public CssScript(special_xml Sxml, type Mime_Type, string html_type, string type_name, css_variables[] Variables, string[] Values) { sxml = Sxml; mime_Type = Mime_Type; html_Type = html_type; type_Name = type_name; variables = Variables; values = Values; }