Example #1
0
    private static string smethod_11(CssUnitType A_0)
    {
        int num = 13;

        switch (A_0)
        {
        case CssUnitType.In:
            return(BookmarkStart.b("娲嬴", num));

        case CssUnitType.Cm:
            return(BookmarkStart.b("倲場", num));

        case CssUnitType.Mm:
            return(BookmarkStart.b("帲場", num));

        case CssUnitType.Pt:
            return(BookmarkStart.b("䌲䄴", num));

        case CssUnitType.Pc:
            return(BookmarkStart.b("䌲嘴", num));

        case CssUnitType.Px:
            return(BookmarkStart.b("䌲䴴", num));

        case CssUnitType.Em:
            return(BookmarkStart.b("嘲場", num));

        case CssUnitType.Ex:
            return(BookmarkStart.b("嘲䴴", num));
        }
        return("");
    }
Example #2
0
 internal double method_12(CssUnitType A_0, double A_1)
 {
     if (this.cssValueType_0 != CssValueType.Percentage)
     {
         return(this.method_11(A_0));
     }
     return((((double)this.object_0) * A_1) / 100.0);
 }
Example #3
0
 internal double method_11(CssUnitType A_0)
 {
     if (this.cssValueType_0 == CssValueType.Length)
     {
         return(smethod_13(smethod_12((double)this.object_0, this.cssUnitType_0), A_0));
     }
     if (this.cssValueType_0 == CssValueType.Number)
     {
         return(smethod_13(smethod_12((double)this.object_0, CssUnitType.Px), A_0));
     }
     return(0.0);
 }
Example #4
0
 private bool method_3(string A_0, string A_1, CssUnitType A_2)
 {
     if (A_0.EndsWith(A_1))
     {
         double d = Class1041.smethod_15(A_0.Substring(0, A_0.Length - A_1.Length));
         if (!double.IsNaN(d))
         {
             this.object_0       = d;
             this.cssValueType_0 = CssValueType.Length;
             this.cssUnitType_0  = A_2;
             return(true);
         }
     }
     return(false);
 }
Example #5
0
 private Class1125(object A_0, CssValueType A_1, CssUnitType A_2)
 {
     this.object_0       = A_0;
     this.cssValueType_0 = A_1;
     this.cssUnitType_0  = A_2;
 }
Example #6
0
    internal static Class1125 smethod_6(double A_0, double A_1, double A_2, double A_3, CssUnitType A_4)
    {
        Class1030 class2 = new Class1030(4);

        class2.Add(smethod_4(A_0, A_4));
        class2.Add(smethod_4(A_1, A_4));
        class2.Add(smethod_4(A_2, A_4));
        class2.Add(smethod_4(A_3, A_4));
        return(smethod_7(class2));
    }
Example #7
0
 internal static Class1125 smethod_4(double A_0, CssUnitType A_1)
 {
     return(new Class1125(A_0, CssValueType.Length, A_1));
 }
Example #8
0
 private static double smethod_13(double A_0, CssUnitType A_1)
 {
     return(A_0 * double_0[(int)A_1]);
 }