Esempio n. 1
0
        private void ToolStripMenuItem6_Click(object sender, EventArgs e)
        {
            cadastroClientes Outroform = new cadastroClientes();

            Outroform.ShowDialog();
            Outroform.Activate();
        }
Esempio n. 2
0
 private void Button2_Click(object sender, EventArgs e)
 {
     if (this.dataGridView1.SelectedRows.Count > 0)
     {
         cadastroClientes Outroform = new cadastroClientes(((Cliente)this.dataGridView1.SelectedRows[0].DataBoundItem).Id);
         Outroform.ShowDialog();
         Outroform.Activate();
         this.bindingSourceClientes.DataSource = this.cliente.ConsultarTodos().Select(value => (Cliente)value).ToList();
         this.bindingSourceClientes.ResetBindings(false);
     }
 }