public void Clear() { TBName.Clear(); TBSurname.Clear(); TBEmail.Clear(); PBPassword.Clear(); }
private void Clear() { employeeModel.EState = EntityState.Added; PnlControls.Enabled = false; TBDni.Clear(); TBFirstName.Clear(); TBEmail.Clear(); }
private void BTNModificar_Click(object sender, EventArgs e) { TBNombre.Clear(); TBApPaterno.Clear(); TBApMaterno.Clear(); TBNickname.Clear(); TBFechaNac.Clear(); TBEmail.Clear(); TBDescripciónUser.Clear(); MessageBox.Show("Usuario modificado", "Mensaje de estado"); }
private void clearAllFiels() { TBAnzahlZimmer.Clear(); TBEmail.Clear(); TBManager.Clear(); TBName.Clear(); TBOrt.Clear(); TBSterne.Clear(); TBTagespreis.Clear(); TBTelefon.Clear(); TBWeb.Clear(); TBLand.SelectedItem = null; }
private void button1_Click(object sender, EventArgs e) { try { ClienteNegocio clienteNegocio = new ClienteNegocio(); clienteNegocio.agregarCliente(MTBCedula.Text, TBNombre.Text, TBApellido.Text, TBEmail.Text, MTBTelefono.Text); MTBCedula.Clear(); TBNombre.Clear(); TBApellido.Clear(); TBEmail.Clear(); MTBTelefono.Clear(); MessageBox.Show("Cliente ingresado"); } catch (Exception em) { MessageBox.Show("" + em.Message); } }
private void button1_Click(object sender, RoutedEventArgs e) { try { if (TBFName.Text == "") { lbDisplay.Content = "First name box is eympty please enter correct info"; } else if (TBLName.Text == "") { lbDisplay.Content = "Last name box is eympty please enter correct info"; } else if (TBMID.Text == "") { lbDisplay.Content = "Major ID box is eympty please enter correct info"; } else if (TBEmail.Text == "") { lbDisplay.Content = "E-mail box is eympty please enter correct info"; } else if (TBAddress.Text == "") { lbDisplay.Content = "Address box is eympty please enter correct info"; } else if (TBPhone.Text == "") { lbDisplay.Content = "Phone number box is eympty please enter correct info"; } else { lbDisplay.Content = ""; MessageBox.Show("E-Mail has been sent to the board to be checked over."); TBFName.Clear(); TBLName.Clear(); TBMID.Clear(); TBEmail.Clear(); TBAddress.Clear(); TBPhone.Clear(); } } catch { } }