private void ogdDataCoupon_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { // otbSearchCpnCode.Text = ogdDataCoupon.CurrentRow.Cells["FTCpnCode"].Value.ToString(); var oCpnData = new cmlCpnData { tCML_StmCode = ogdDataCoupon.CurrentRow.Cells["FTStmCode"].Value.ToString(), tCML_TmnNum = ogdDataCoupon.CurrentRow.Cells["FTTmnNum"].Value.ToString(), tCML_DateIns = ogdDataCoupon.CurrentRow.Cells["FDDateIns"].Value.ToString(), tCML_CpnCode = ogdDataCoupon.CurrentRow.Cells["FTCpnCode"].Value.ToString(), tCML_CpnAmt = ogdDataCoupon.CurrentRow.Cells["FCCpnAmt"].Value.ToString(), tCML_CpnExp = ogdDataCoupon.CurrentRow.Cells["FDCpnExp"].Value.ToString(), tCML_CpnUseSta = ogdDataCoupon.CurrentRow.Cells["FTCpnUseSta"].Value.ToString(), tCML_WhoIns = ogdDataCoupon.CurrentRow.Cells["FTWhoIns"].Value.ToString() }; var oDetailCoupon = new wDetailCoupon(this, oCpnData); oDetailCoupon.ShowDialog(); } catch (Exception) { } }
public wDetailCoupon(wMain poMain, cmlCpnData poCpnData) { oMain = poMain; oCpnData = poCpnData; InitializeComponent(); }