static void Main(string[] args)
        {
            eh.CheckEventLog();
            //sluiten van app door user
            _handler += new EventHandler(Handler);
            SetConsoleCtrlHandler(_handler, true);
            //sluiten van app door user

            //Beveiliging instellen van webservice
            System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls12 | System.Net.SecurityProtocolType.Tls11;

            SettingsHelper sh = new SettingsHelper();

            if (sh.ValidateUsernameFormat())
            {
                StartProgram();
            }
        }