private void tsRegresar_Click(object sender, EventArgs e)
        {
            this.Hide();
            formInicioSesion formInicio = new formInicioSesion(service);

            formInicio.ShowDialog();
        }
 private void tsCerrarSesion_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(this, "¿Seguro que quiere cerrar sesion?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         service.LogOut();
         this.Hide();
         formInicioSesion formInicio = new formInicioSesion(service);
         formInicio.ShowDialog();
     }
 }
        private void cmdRegistroUsuario_Click(object sender, EventArgs e)

        {
            try
            {
                service.RegisterUser(dateBirth.Value, txtDNI.Text, txtEmail.Text, txtNombre.Text, Convert.ToInt32(txtTelephon.Text.Replace(" ", "")),
                                     Convert.ToInt32(txtCVV.Text), dateExpiration.Value, txtLogin.Text, Convert.ToInt32(txtCardNumber.Text.Replace(" - ", "")), txtPassword.Text);
                MessageBox.Show(this, "Registro exitoso", "Bienvenido", MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.Hide();
                formInicioSesion formInicioSesion = new formInicioSesion(service);
                formInicioSesion.Show();
            }
            catch (ServiceException serviceException)
            {
                MessageBox.Show(this, serviceException.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }