-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
27 lines (22 loc) · 757 Bytes
/
Program.cs
File metadata and controls
27 lines (22 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using GarminMtpDataBackupper.Config;
using System;
using System.Reflection;
namespace GarminMtpDataBackupper
{
class Program
{
static void Main(string[] _)
{
Console.WriteLine($"GarminMtpDataBackupper version: {typeof(Program).Assembly.GetName().Version}");
Console.WriteLine("Press Enter to start.");
Console.ReadLine();
var configReader = new ConfigReader();
var config = configReader.GetConfig();
var device = new Device(config);
var dataBackuper = new DataBackupper(config, device);
dataBackuper.BackupGarminData();
Console.WriteLine("\nPress Enter to finish.");
Console.ReadLine();
}
}
}