private void txtBxForm_Validating(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (txtBxForm.Text == string.Empty)
     {
         ErrPrvdrProcesso.SetError(txtBxForm, ValidationsMessages.VALIDA_CAMPO_VAZIO);
         tlstrpActionMenuBtnConfirm.Enabled = false;
     }
     else
     {
         ErrPrvdrProcesso.SetError(txtBxForm, string.Empty);
         tlstrpActionMenuBtnConfirm.Enabled = true;
     }
 }
        private void tlstrpActionMenuBtnConfirm_Click(object sender, System.EventArgs e)
        {
            if (txtBxDescricaoProcesso.Text == string.Empty)
            {
                ErrPrvdrProcesso.SetError(txtBxDescricaoProcesso, ValidationsMessages.VALIDA_CAMPO_VAZIO);
                tlstrpActionMenuBtnConfirm.Enabled = false;
                tlstrpLblError.Visible             = true;
                txtBxDescricaoProcesso.Focus();
                return;
            }

            if (txtBxForm.Text == string.Empty)
            {
                ErrPrvdrProcesso.SetError(txtBxForm, ValidationsMessages.VALIDA_CAMPO_VAZIO);
                tlstrpActionMenuBtnConfirm.Enabled = false;
                tlstrpLblError.Visible             = true;
                txtBxForm.Focus();
                return;
            }
            ExecuteModifyProcesso();
            this.Close();
        }
 private void txtBxForm_KeyPress(object sender, KeyPressEventArgs e)
 {
     ErrPrvdrProcesso.SetError(txtBxForm, string.Empty);
     tlstrpActionMenuBtnConfirm.Enabled = true;
     tlstrpLblError.Visible             = false;
 }