-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
45 lines (33 loc) · 1.27 KB
/
Program.cs
File metadata and controls
45 lines (33 loc) · 1.27 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
namespace ModifyBibtex
{
class Program
{
private static ToolProperty _currenToolProperties = null;
static readonly List<IBibItem> _allBibItems = new List<IBibItem>();
static void Main(string[] args)
{
Console.WriteLine(value: "Program has started");
Console.WriteLine(value: "Program load settings ...");
_currenToolProperties = new ToolProperty();
try
{
_currenToolProperties.Initial();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
ModifyController readWriteController = new ModifyController();
var fileInput = readWriteController.ReadFile(_currenToolProperties);
var listOfEnties = readWriteController.CreateListOfBibItemsFormString(_currenToolProperties, fileInput);
readWriteController.WriteToFile(_currenToolProperties.FinalFile, listOfEnties);
Console.WriteLine(value: "Program has finished, file is written! ");
Console.WriteLine(value: "Press any key to exit ... ");
Console.ReadLine();
}
}
}