示例#1
0
        private async void VerfiyServer()
        {
            ServerName = Properties.Settings.Default.Server;
            UserName   = Properties.Settings.Default.UserName;

            ServerMessage = "Connecting....";

            if (await _dbModel.CheckConnection())
            {
                ValidConnection = true;
                ServerMessage   = "Connected!";
                AsyncLoadDBs();
            }
            else
            {
                ServerMessage   = "Error, no connection was established to the server!";
                ValidConnection = false;
            }
        }