Esempio n. 1
0
        /// <summary>
        /// Get databases from web service.
        /// </summary>
        private static void LoadDatabases()
        {
            DatabaseList databases;

            if (Databases.IsNull())
            {
                // Get data from web service.
                databases = new DatabaseList();
                foreach (WebDatabase webDatabase in WebServiceClient.GetDatabases())
                {
                    databases.Add(new Database(webDatabase.Id, webDatabase.LongName, webDatabase.ShortName));
                }

                Databases = databases;
            }
        }