Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        private void CheckLinkAddress()
        {
            if (string.IsNullOrEmpty(LinkAddress))
            {
                return;
            }
            else
            {
                string[] str = LinkAddress.Split(new char[] { ':' }, StringSplitOptions.RemoveEmptyEntries);
                mDriverName = str[0];
                if (str.Length > 1)
                {
                    mRegistorName = LinkAddress.Substring(mDriverName.Length + 1);
                }

                if (Drivers != null && Drivers.ContainsKey(mDriverName))
                {
                    RegistorList = Drivers[mDriverName];
                }
                else
                {
                    RegistorList = null;
                }
            }
        }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 private void CheckLinkAddress()
 {
     if (string.IsNullOrEmpty(LinkAddress))
     {
         return;
     }
     else
     {
         string[] str = LinkAddress.Split(new char[] { ':' }, StringSplitOptions.RemoveEmptyEntries);
         mDriverName = str[0];
         if (str.Length > 1)
         {
             mRegistorName = LinkAddress.Substring(mDriverName.Length + 1);
         }
     }
 }