private void LoadConfiguration()
        {
            if (File.Exists(userConfigurationFile))
            {
                // read the JSON file
                var streamReader = File.OpenText(userConfigurationFile);
                var serializer   = new JsonSerializer();
                using (var jsonReader = new JsonTextReader(streamReader))
                {
                    configuration = serializer.Deserialize <Configuration>(jsonReader);
                }

                // link back projects to their server
                foreach (var server in configuration.Servers)
                {
                    foreach (var project in server.Projects)
                    {
                        project.Server = server;
                    }
                }
            }
            else
            {
                // read the legacy properties file
                var legacyReader = new LegacyConfigurationService();
                configuration = legacyReader.LoadConfiguration();
            }
        }
        private void LoadConfiguration()
        {
            if (File.Exists(userConfigurationFile))
            {
                // read the JSON file
                var streamReader = File.OpenText(userConfigurationFile);
                var serializer = new JsonSerializer();
                using (var jsonReader = new JsonTextReader(streamReader))
                {
                    configuration = serializer.Deserialize<Configuration>(jsonReader);
                }

                // link back projects to their server
                foreach (Server server in configuration.Servers)
                {
                    foreach (Project project in server.Projects)
                        project.Server = server;
                }
            }
            else
            {
                // read the legacy properties file
                var legacyReader = new LegacyConfigurationService();
                configuration = legacyReader.LoadConfiguration();
            }
        }