/// <summary> /// Busca de pedidos cadastrados /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnBuscar_Click(object sender, EventArgs e) { Telas.FrmSaidaPesquisa frmSaidaPesquisa = new Telas.FrmSaidaPesquisa(); frmSaidaPesquisa.ShowDialog(); if (frmSaidaPesquisa.SaidaSelected != null) { Cursor.Current = Cursors.WaitCursor; ObterSaidas(frmSaidaPesquisa.SaidaSelected.CodSaida); saidaBindingSource.Position = saidaBindingSource.List.IndexOf(frmSaidaPesquisa.SaidaSelected); Cursor.Current = Cursors.Default; } frmSaidaPesquisa.Dispose(); }
private void btnBuscar_Click(object sender, EventArgs e) { Telas.FrmSaidaPesquisa frmSaidaPesquisa = new Telas.FrmSaidaPesquisa(); frmSaidaPesquisa.ShowDialog(); if (frmSaidaPesquisa.SaidaSelected != null) { Cursor.Current = Cursors.WaitCursor; saidaCupomBindingSource.DataSource = GerenciadorSaida.GetInstance(null).ObterSaidaConsumidor(frmSaidaPesquisa.SaidaSelected.CodSaida); saidaCupomBindingSource.Position = saidaBindingSource.List.IndexOf(frmSaidaPesquisa.SaidaSelected); Cursor.Current = Cursors.Default; } frmSaidaPesquisa.Dispose(); btnSalvar.Focus(); }