コード例 #1
0
        // Token: 0x06000056 RID: 86 RVA: 0x000059CC File Offset: 0x00003BCC
        public static void SetDRValues(string m, string d, int t, bool b, int numof, List <string> master, out List <string> newMaster)
        {
            newMaster = new List <string>();
            string newValue = MSDRUtility.ConvertToDRValue(t, m, d, b, numof);

            if (master != null)
            {
                bool beenSet = false;
                if (master.Count > 0)
                {
                    foreach (string value in master)
                    {
                        string a   = MSDRUtility.HValuePart(value);
                        int    num = MSDRUtility.NumValuePart(value);
                        if (a != m)
                        {
                            GenCollection.AddDistinct <string>(newMaster, value);
                        }
                        else if (num != numof)
                        {
                            GenCollection.AddDistinct <string>(newMaster, value);
                        }
                        else
                        {
                            GenCollection.AddDistinct <string>(newMaster, newValue);
                            beenSet = true;
                        }
                    }
                }
                if (!beenSet)
                {
                    GenCollection.AddDistinct <string>(newMaster, newValue);
                }
            }
        }
コード例 #2
0
 // Token: 0x06000057 RID: 87 RVA: 0x00005A84 File Offset: 0x00003C84
 public static int GetValueDRnumof(string m, List <string> master)
 {
     if (m != null && master != null && master.Count > 0)
     {
         foreach (string value in master)
         {
             if (MSDRUtility.HValuePart(value) == m)
             {
                 return(MSDRUtility.NumValuePart(value));
             }
         }
         return(1);
     }
     return(1);
 }
コード例 #3
0
 // Token: 0x06000059 RID: 89 RVA: 0x00005B74 File Offset: 0x00003D74
 public static string GetValueDRDrug(string m, List <string> master, int num)
 {
     if (m != null && master != null && master.Count > 0)
     {
         foreach (string value in master)
         {
             string Hdef  = MSDRUtility.HValuePart(value);
             int    numof = MSDRUtility.NumValuePart(value);
             if (Hdef == m && numof == num)
             {
                 return(MSDRUtility.DValuePart(value));
             }
         }
     }
     return(null);
 }