private void BtnGeneratePDF_Click(object sender, EventArgs e) { InvoiceParameter.SalesId = ""; PrintOrderForm printOrderForm = new PrintOrderForm(); printOrderForm.Show(); }
private void Dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow row = dgv.Rows[e.RowIndex]; string salesId = row.Cells[0].Value.ToString(); InvoiceParameter.SalesId = salesId; PrintOrderForm printOrderForm = new PrintOrderForm(); printOrderForm.Show(); }