static void InitDataBase(string[] args) { Console.WriteLine("Initialize the DataBase:"); Console.WriteLine("Notice: This Command would clear all you record in tables!"); Console.WriteLine("Tap 'Yes' to continue."); string input = Console.ReadLine(); if (input == "Yes") { DataBaseCreator creator = new DataBaseCreator(GetScadaSqlFile()); creator.Execute(); } }
static void InitDataBaseSilent(string[] args) { DataBaseCreator creator = new DataBaseCreator(GetScadaSqlFile()); creator.Execute(); }