private void btnGravar_Click(object sender, EventArgs e)
        {
            Controller.PagamentoController _ctrlFormaPag = new Controller.PagamentoController();

            string strMensagem = string.Empty;

            try
            {
                //validações
                int intCodigo = 0;
                if (intcodForma != 0)
                {
                    if (!int.TryParse(ttbCodigo.Text, out intCodigo))
                    {
                        strMensagem += $"Código inválido{Environment.NewLine}";
                    }
                }


                if (string.IsNullOrWhiteSpace(ttbForma.Text))
                {
                    strMensagem += $"Informe a Forma de Pagamento.";
                }

                //verificar se houve alguma anormalidade no cadastro
                if (string.IsNullOrEmpty(strMensagem))
                {
                    int intRetorno = _ctrlFormaPag.gravaFormaPagamento(intCodigo, ttbForma.Text);

                    if (intRetorno == 1)
                    {
                        MessageBox.Show("Gravado com sucesso!");
                    }
                    else
                    {
                        MessageBox.Show("Erro ao Gravar.");
                    }
                    _limpaCampos();
                    _inicializa();
                }
                else
                {
                    MessageBox.Show(strMensagem, "Aviso!!");
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex + "");
            }
        }