Ejemplo n.º 1
0
 public static DataSaver GetInstance()
 {
     if (instance == null)
     {
         instance = new DataSaver();
     }
     return(instance);
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Logger log = new Logger(debug);

            string[]                arguments = Environment.GetCommandLineArgs();
            List <string>           paths     = ArgumentsParser.GetFilesPaths(arguments);
            DataParser              parser    = new DataParser();
            List <ConnectionString> dataList  = parser.GetAllData(paths);
            DataSaver               saver     = DataSaver.GetInstance();

            saver.SaveToFiles(dataList, quantityOfFiles);
            Console.WriteLine("Приложение успешно завершило работу");
            Console.ReadKey();
        }