public string ReadTimeArea(string[] args)
        {
            SplitText splitText = new SplitText();
            string    timeArea  = null;

            foreach (string command in args)
            {
                if (command.StartsWith("-ta") || command.StartsWith("-timearea"))
                {
                    timeArea = splitText.SplintOnFirst(command);
                }
            }

            return(timeArea);
        }
        public string ReadWrite(string[] args)
        {
            SplitText splitText = new SplitText();
            string    write     = null;

            foreach (string command in args)
            {
                if (command.StartsWith("-w") || command.StartsWith("-write"))
                {
                    write = splitText.SplintOnFirst(command);

                    if (write == null)
                    {
                        write = @"C:\CSV\" + DateTime.Now + ".csv";
                    }
                }
            }

            return(write);
        }
        public DateTime ReadEndDate(string[] args)
        {
            SplitText splitText     = new SplitText();
            string    endDateString = null;
            DateTime  endDate       = new DateTime();

            foreach (string command in args)
            {
                if (command.StartsWith("-ed") || command.StartsWith("-enddate"))
                {
                    endDateString = splitText.SplintOnFirst(command);
                    if (_checkDateExist.IsDateValid(endDateString) == false)
                    {
                        endDateString = DateTime.Today.ToString("yyyy-MM-dd");
                    }
                    endDate = DateTime.ParseExact(endDateString, "yyyy-M-d", System.Globalization.CultureInfo.InvariantCulture);
                }
            }

            return(endDate);
        }