private void btnNovo_Click(object sender, EventArgs e) { frmPagamento frm = new frmPagamento(false, null); frm.ShowDialog(); AtualizaGrid(); }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var rowHandle = gridView1.FocusedRowHandle; var IdVenda = gridView1.GetRowCellValue(rowHandle, "IDVENDA"); var IdCliente = gridView1.GetRowCellValue(rowHandle, "IDCLIENTE"); string IDVENDA = String.Format(@"AND VENDA.IDVENDA = {0}", IdVenda); frmPagamento frm = new frmPagamento(false, IdCliente.ToString()); frm.CODIGOVENDA = IDVENDA.ToString(); frm.CarregaNome(); frm.ShowDialog(); }
private void toolStripLabel1_Click(object sender, EventArgs e) { try { var rowHandle = gridView1.FocusedRowHandle; var obj = gridView1.GetRowCellValue(rowHandle, "IDCLIENTE"); frmPagamento frm = new frmPagamento(true, obj.ToString()); frm.ShowDialog(); AtualizaGrid(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnVisualizarParcelas_Click(object sender, EventArgs e) { try { var rowHandle = gridView1.FocusedRowHandle; var obj = gridView1.GetRowCellValue(rowHandle, "IDCLIENTE"); if (obj != null) { frmPagamento frm = new frmPagamento(true, obj.ToString()); frm.ShowDialog(); AtualizaGrid(); } else { MessageBox.Show("Por favor, selecione um registro", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }