private void VendasToolStripMenuItem_Click(object sender, EventArgs e) { telaVendas_Orcamentos Outroform = new telaVendas_Orcamentos(false, this.funcionario.Id); Outroform.ShowDialog(); Outroform.Activate(); }
private void Button2_Click(object sender, EventArgs e) { if (this.dataGridView1.SelectedRows.Count > 0) { telaVendas_Orcamentos Outroform = new telaVendas_Orcamentos(false, this.funcionario.Id, ((Venda)this.dataGridView1.SelectedRows[0].DataBoundItem).Id); Outroform.ShowDialog(); Outroform.Activate(); this.bindingSourceVendas.DataSource = this.venda.GetOrcamentos(); this.bindingSourceVendas.ResetBindings(false); } }