void dgrdvPO_CellContentClick(object sender, DataGridViewCellEventArgs e) { int irow = e.RowIndex; int icol = e.ColumnIndex; if ((irow == -1) || (icol == -1)) { return; } long NoteID = (long)this.dtblNotes.DefaultView[irow]["NoteID"]; if (this.dgrdvPO.Columns[icol].Name == this.ColumnbtnDetail.Name) { if (this.frmDetail == null) { this.frmDetail = new JERPApp.Store.Product.Report.Bill.FrmSaleDeliverNote(); new FrmStyle(frmDetail).SetPopFrmStyle(this); } frmDetail.DetailNote(NoteID); frmDetail.ShowDialog(); } }
void lnkNoteCode_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (this.SaleDeliverNoteID > -1) { if (frmSaleDeliverNote == null) { frmSaleDeliverNote = new JERPApp.Store.Product.Report.Bill.FrmSaleDeliverNote(); new FrmStyle(frmSaleDeliverNote).SetPopFrmStyle(this); } frmSaleDeliverNote.DetailNote(this.SaleDeliverNoteID); frmSaleDeliverNote.ShowDialog(); } }