Ejemplo n.º 1
0
 private bool TestConnection(out string ErrorMessage, out int ErrorNumber)
 {
     using (var config = new PosBusiness.Config())
     {
         return(config.CheckConnection(out ErrorMessage,
                                       out ErrorNumber,
                                       this.txtServer.Text,
                                       this.txtUser.Text,
                                       this.txtPassword.Text,
                                       int.Parse(this.txtPort.Text),
                                       this.txtDataBase.Text));
     }
 }