private void lançarFolhaToolStripMenuItem_Click_1(object sender, EventArgs e) { frmFolhaRH x = new frmFolhaRH(); x.Show(); x.CarregarFuncionarios(); }
private void button1_Click(object sender, EventArgs e) { try { ab.InserirResultado(dtoFolha); MessageBox.Show("FOLHA SALVA COM SUCESSO."); frmFolhaRH x = new frmFolhaRH(); x.CarregarFuncionarios(); x.Show(); this.Close(); } catch (Exception) { MessageBox.Show("ERRO AO SALVAR FOLHA DE PAGAMENTO."); } }