private void demiçãoToolStripMenuItem_Click(object sender, EventArgs e) { frmDemRH t1 = new frmDemRH(); t1.Show(); this.Show(); }
private void button1_Click(object sender, EventArgs e) { try { Demitir dm = new Demitir(); DTOUser user = lstAtivos.SelectedItem as DTOUser; dm.DemitirFuncionario(txtNome.Text, txtSetor.Text, txtCausa.Text, dtpDia.Value, this.IdUser); if (dm.Clear == true) { frmDemRH dmi = new frmDemRH(); dmi.Show(); this.Close(); } } catch (Exception) { MessageBox.Show("OCORREU UM PROBLEMA!ESTÁ TUDO PREENCHIDO?", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void dEMISSÃOToolStripMenuItem_Click(object sender, EventArgs e) { frmDemRH dem = new frmDemRH(); dem.Show(); }