public static VCServersInfo getVCServerInfoByOrganizationID(string organizationID)
        {
            VCSettingsInfo       settingsInfo = GetVCSettingsInfo();
            List <VCServersInfo> vcServers    = null;
            VCServersInfo        server       = null;

            if (settingsInfo != null)
            {
                vcServers = settingsInfo.servers;
            }

            if (vcServers != null)
            {
                server = vcServers.FirstOrDefault(vcServer => vcServer.organizations.Any(organizations => organizations.organizationID == organizationID));
            }
            return(server);
        }
        public static VCSettingsInfo GetVCSettingsInfo()
        {
            VCSettingsInfo       vcSettingsInfo = new VCSettingsInfo();
            List <VCServersInfo> serversInfo    = new List <VCServersInfo>();
            string encryptedUserName            = string.Empty;

            try
            {
                string path = GetCurrentSettingsFullName();
                using (StreamReader sr = new StreamReader(path, Encoding.UTF8))
                    using (XmlReader reader = XmlReader.Create(sr))
                    {
                        serversInfo = readVCSettingsXML(reader);
                    }
            }
            catch (Exception ex)
            {
                string ms = ex.Message;
            }

            vcSettingsInfo.servers           = serversInfo;
            vcSettingsInfo.encryptedUserName = encryptedUserName;
            return(vcSettingsInfo);
        }