static void CreateDefaultConfig()
        {
            Config = new UploaderConfig();

            Config.LastUpdateTime = new DateTime(2000, 1, 1);

            SaveConfig();
        }
        public static UploaderConfig LoadConfig()
        {
            var xmlSerializer = new XmlSerializer(typeof(UploaderConfig));

            if (!File.Exists(ConfigFilename))
            {
                CreateDefaultConfig();
            }

            using (var fs = new FileStream(ConfigFilename, FileMode.Open))
            {
                Config = (UploaderConfig)xmlSerializer.Deserialize(fs);
            }

            return Config;
        }