void lnkNew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (this.frmOper == null) { this.frmOper = new FrmReconciliationOper(); new FrmStyle(this.frmOper).SetPopFrmStyle(this); this.frmOper.AffterSave += this.LoadData; } this.frmOper.New(); this.frmOper.ShowDialog(); }
void dgrdvReconciliation_CellContentClick(object sender, DataGridViewCellEventArgs e) { int irow = e.RowIndex; int icol = e.ColumnIndex; if ((irow == -1) || (icol == -1)) { return; } if (this.dgrdvReconciliation.Columns[icol].Name == this.ColumnBtnEdit.Name) { long ReconciliationID = (long)this.dtblReconciliations.DefaultView[irow]["ReconciliationID"]; if (this.frmOper == null) { this.frmOper = new FrmReconciliationOper(); new FrmStyle(this.frmOper).SetPopFrmStyle(this); this.frmOper.AffterSave += this.LoadData; } this.frmOper.Edit(ReconciliationID); this.frmOper.ShowDialog(); } }