public FrmMain()
        {
            InitializeComponent();            
            Init();

            this.dataGenerator = new SqlDataGenerator(this.connection, this.spName, this.commandTimeout, this.meters, this.tasks, this.delay, this.batchSize, this.ExceptionCallback);
        }
        static void Main(string[] args)
        {
            Init();
            dataGenerator = new SqlDataGenerator(connection, spName, commandTimeout, meters, tasks, delay, batchSize, ExceptionCallback);

            mainTimer.Elapsed += mainTimer_Tick;
            rpsTimer.Elapsed += rpsTimer_Tick;
            shockTimer.Elapsed += shockTimer_Tick;

            string commandString = string.Empty;
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("***********************************************************");
            Console.WriteLine("*                   Data Generator                        *");
            Console.WriteLine("*                                                         *");
            Console.WriteLine("*             Type commands to get started                *");
            Console.WriteLine("*                                                         *");
            Console.WriteLine("***********************************************************");
            Console.WriteLine("");

            // main command cycle
            while (!commandString.Equals("Exit"))
            {
                Console.ResetColor();
                Console.WriteLine("Enter command (start | stop | help | report | exit) >");
                commandString = Console.ReadLine();

                switch (commandString.ToUpper())
                {
                    case "START":
                        Start();
                        break;
                    case "STOP":
                        Stop();
                        break;
                    case "HELP":
                        Help();
                        break;
                    case "REPORT":
                        Report();
                        break;
                    case "EXIT":
                        Console.WriteLine("Bye!");
                        return;
                    default:
                        Console.ForegroundColor = ConsoleColor.Red;
                        Console.WriteLine("Invalid command.");
                        break;
                }
            }
        }