コード例 #1
0
    internal Class454 method_41(int A_0)
    {
        Class454  class3;
        Class1089 class2 = base.method_0().method_0().method_6(BookmarkStart.b("挫䰭娯圱圳䈵样唹医刽", 6));

        if (class2 == null)
        {
            return(null);
        }
        using (IDictionaryEnumerator enumerator = class2.GetEnumerator())
        {
            DictionaryEntry current;
            while (enumerator.MoveNext())
            {
                current = (DictionaryEntry)enumerator.Current;
                string key = (string)current.Key;
                int    num = Class1041.smethod_18(key.TrimStart(new char[] { '_' }));
                if ((num != -2147483648) && (A_0 == num))
                {
                    goto Label_0081;
                }
            }
            return(null);

Label_0081:
            class3 = new Class454(A_0, (Class1089)current.Value);
        }
        return(class3);
    }
コード例 #2
0
    private static Class623 smethod_0(string A_0)
    {
        int num = Class576.smethod_2(Class1041.smethod_18(A_0));

        if (num != -2147483648)
        {
            return(new Class623(num, false));
        }
        return(new Class623());
    }
コード例 #3
0
 internal static void smethod_12(Class857 A_0, string A_1, bool A_2, bool A_3, Class43 A_4)
 {
     bool_9   = false;
     bool_10  = false;
     double_2 = 1.0;
     if (Class567.smethod_16(A_1))
     {
         string[] strArray = A_1.Trim().Split(new char[] { ' ' });
         int[]    numArray = new int[4];
         for (int i = 0; i < strArray.Length; i++)
         {
             if (i >= 4)
             {
                 break;
             }
             int num6 = Class1041.smethod_18(strArray[i]);
             if (num6 == -2147483648)
             {
                 return;
             }
             numArray[i] = num6;
         }
         int num4 = numArray[2] - numArray[0];
         int num5 = numArray[3] - numArray[1];
         int_2 = numArray[2];
         int_3 = numArray[3];
         if (num5 > 0)
         {
             double num  = ((double)num4) / ((double)num5);
             double num2 = A_0.method_47() / A_0.method_46();
             if (A_2 && (num < num2))
             {
                 num4     = (int)(num4 * num2);
                 double_2 = num2;
                 bool_9   = true;
             }
             if (A_3 && (num > num2))
             {
                 num5     = (int)(((double)num5) / num2);
                 double_2 = num2;
                 bool_10  = true;
             }
         }
         if (Class576.smethod_4(num4, num5))
         {
             Class576.smethod_3(num4, num5);
             num4 = Class576.smethod_2(num4);
             num5 = Class576.smethod_2(num5);
         }
         A_4.SetAttr(0x101d, numArray[0]);
         A_4.SetAttr(0x101e, numArray[1]);
         A_4.SetAttr(0x101f, num4);
         A_4.SetAttr(0x1020, num5);
     }
 }
コード例 #4
0
    internal static int smethod_19(string A_0)
    {
        if (!Class567.smethod_16(A_0))
        {
            return(-2147483648);
        }
        int num = A_0.Length - 1;

        while (num >= 0)
        {
            if ((A_0[num] < '0') || (A_0[num] > '9'))
            {
                break;
            }
            num--;
        }
        return(Class1041.smethod_18(A_0.Substring(num + 1)));
    }
コード例 #5
0
    internal static OdsoDataSourceType smethod_6(string A_0, bool A_1)
    {
        int    num = 13;
        string key = A_0;

        if (key != null)
        {
            int num2;
            if (Class1160.dictionary_49 == null)
            {
                Dictionary <string, int> dictionary1 = new Dictionary <string, int>(9);
                dictionary1.Add(BookmarkStart.b("刲儴匶䬸帺丼䰾̀ⱂ⩄ⱆ", num), 0);
                dictionary1.Add(BookmarkStart.b("圲吴䌶堸夺尼䰾⑀", num), 1);
                dictionary1.Add(BookmarkStart.b("圲娴吶䰸嘺堼儾㕀牂", num), 2);
                dictionary1.Add(BookmarkStart.b("圲娴吶䰸嘺堼儾㕀煂", num), 3);
                dictionary1.Add(BookmarkStart.b("嘲場嘶倸场", num), 4);
                dictionary1.Add(BookmarkStart.b("弲倴倶堸堺䐼", num), 5);
                dictionary1.Add(BookmarkStart.b("帲吴䐶䴸帺似", num), 6);
                dictionary1.Add(BookmarkStart.b("崲吴䌶倸䴺堼", num), 7);
                dictionary1.Add(BookmarkStart.b("䜲倴伶䴸", num), 8);
                Class1160.dictionary_49 = dictionary1;
            }
            if (Class1160.dictionary_49.TryGetValue(key, out num2))
            {
                switch (num2)
                {
                case 0:
                    return(OdsoDataSourceType.AddressBook);

                case 1:
                    return(OdsoDataSourceType.Database);

                case 2:
                    return(OdsoDataSourceType.Document1);

                case 3:
                    return(OdsoDataSourceType.Document2);

                case 4:
                    return(OdsoDataSourceType.Email);

                case 5:
                    return(OdsoDataSourceType.Legacy);

                case 6:
                    return(OdsoDataSourceType.Master);

                case 7:
                    return(OdsoDataSourceType.Native);

                case 8:
                    return(OdsoDataSourceType.Text);
                }
            }
        }
        int num3 = Class1041.smethod_18(A_0);

        if (num3 != -2147483648)
        {
            return((OdsoDataSourceType)num3);
        }
        return(OdsoDataSourceType.None);
    }