Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace Ubar4
- {
- public partial class Registro : Form
- {
- public Registro()
- {
- InitializeComponent();
- }
- private void Registro_Load(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- string username=userTxt.Text.Trim();
- bool duplicado=Datos.datosUsuario.Verificacion(username);
- if (duplicado == false)
- {
- Datos.datosUsuario.RegistrarUsuario(username);
- }
- else { MessageBox.Show("El usuario ya existe, favor de seleccionar un nuevo nombre de usuario, o logearse con el "); }
- this.Close();
- }
- private void Registro_Load_1(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment