private void button3_Click(object sender, EventArgs e) { this.Hide(); Caffe.frmGasenjePrograma GP = new frmGasenjePrograma(); GP.Closed += (s, args) => this.Close(); MainForm.Close(); this.Close(); GP.ShowDialog(); }
private void btnSim_Click(object sender, EventArgs e) { this.Close(); frmCadastrar Atualizar = new frmCadastrar(); frmAtualizar Cadastrar = new frmAtualizar(); frmConsultar Consultar = new frmConsultar(); frmConfiguracoes Configuracoes = new frmConfiguracoes(); frmMenu Menu = new frmMenu(); frmSair Sair = new frmSair(); frmFaixa Faixa = new frmFaixa(); Atualizar.Close(); Cadastrar.Close(); Consultar.Close(); Configuracoes.Close(); Menu.Close(); Faixa.Close(); Sair.Close(); frmLogin Login = new frmLogin(); Login.Show(); }