Exemplo n.º 1
0
        private static void CreateDatabase()
        {
            string adminPassword = string.Empty;

             if (CommandLineParser.ContainsArgument("password"))
            adminPassword = CommandLineParser.GetArgument("password");

             Authenticator authenticator = new Authenticator();
             if (!Authenticator.AuthenticateUser(_application, adminPassword))
            return;

             if (_application.Database.DatabaseType == hMailServer.eDBtype.hDBTypeMSSQLCE ||
             _application.Database.DatabaseType == hMailServer.eDBtype.hDBTypeUnknown)
             {
            InitializeInternalDatabase();
             }
        }