private void btnRegister_Click(object sender, EventArgs e) { UserRegistrationInfo userInfo = Maper.MapingRegistrationModel(textBoxLogin.Text, textBoxPass.Text, textBoxConfPass.Text); if (_regController.Registrate(userInfo)) { //TODO Add message routing MessageBox.Show("Successfully completed."); } else { MessageBox.Show("Invalid registration!!!"); } }
private void btnRegister_Click(object sender, EventArgs e) { UserRegistrationInfo userRegistrationInfo = Maper.MapingRegistrationInfo(txtLogin.Text, txtPass.Text, txtConfPass.Text); if (_registrationController.Registrate(userRegistrationInfo)) { MessageBox.Show("Successfully completed."); Close(); } else { MessageBox.Show("Invalid registration!!!"); } }