private void btnLocacao_Click_1(object sender, EventArgs e) { this.Hide(); frmLocacao add = new frmLocacao(); add.Closed += (s, args) => this.Close(); add.Show(); }
private void Button1_Click(object sender, EventArgs e) { frmLocacao telaLocacao = new frmLocacao(); telaLocacao.ShowDialog(); }
private void MenuItem_CadastrarLocacao_Click(object sender, RoutedEventArgs e) { frmLocacao l = new frmLocacao(); l.ShowDialog(); }