Exemplo n.º 1
0
        static void Main(string[] args)
        {
            if (args == null || !args.Any())
            {
                Console.WriteLine("Digite o nome da base de dados:");
                args = new[] { string.Format("database={0}", Console.ReadLine()) };
            }
            var remakeConfiguration = ArrayListConverter.Convert<RemakeConfiguration>(args);

            var remaker = new Remaker(remakeConfiguration);
            remaker.ReportProcess += Console.WriteLine;
            remaker.ReportScriptExecuting += (complete, maxVal, barSize) => DrawProgressBar(complete, maxVal, barSize, '█');
            remaker.Remake();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            if (args == null || !args.Any())
            {
                Console.WriteLine("Digite o nome da base de dados:");
                args = new[] { string.Format("database={0}", Console.ReadLine()) };
            }
            var remakeConfiguration = ArrayListConverter.Convert <RemakeConfiguration>(args);

            var remaker = new Remaker(remakeConfiguration);

            remaker.ReportProcess         += Console.WriteLine;
            remaker.ReportScriptExecuting += (complete, maxVal, barSize) => DrawProgressBar(complete, maxVal, barSize, '█');
            remaker.Remake();
        }