public void limparCampos() { TXT_IDPESSOA.Clear(); TXT_IDELEICAO.Clear(); TXT_IDEMPRESA.Clear(); TXT_NUMERO.Clear(); TXT_SLOGAN.Clear(); TXT_DESCRICAO.Clear(); PB_FOTO.Image = null; }
private void Bot_nuevo_Click(object sender, EventArgs e) { //MenuOptions OptionMenu(0); OptionForm(0); RA_DOCUMENT_STATUS.DataBindings.Clear(); //abrir un documento de devolucion. Consec = Convert.ToInt32(config.GetParameterControl("CONSEC_DEV")) + 1; ParentRow = (DataRowView)bs.AddNew(); ParentRow.BeginEdit(); ParentRow["numero"] = Convert.ToString(Consec); ParentRow["fecha"] = DateTime.Today; ParentRow["doc_status"] = false; ParentRow.EndEdit(); TXT_NUMERO.Focus(); AgregarRenglon(); EditMode = 1; }