void lnkNew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (frmOper == null) { frmOper = new FrmOutSrcPriceOper(); new FrmStyle(frmOper).SetPopFrmStyle(this); frmOper.AffterSave += new FrmOutSrcPriceOper.AffterSaveDelegate(frmOper_AffterSave); } frmOper.NewNote(); frmOper.ShowDialog(); }
void dgrdv_CellContentClick(object sender, DataGridViewCellEventArgs e) { int irow = e.RowIndex; int icol = e.ColumnIndex; if ((irow == -1) || (icol == -1)) { return; } if (this.dgrdv.Columns[icol].Name == this.ColumnBtnEdit.Name) { long NoteID = (long)this.dtblNotes.DefaultView[irow]["NoteID"]; if (this.frmOper == null) { frmOper = new FrmOutSrcPriceOper(); new FrmStyle(frmOper).SetPopFrmStyle(this); frmOper.AffterSave += new FrmOutSrcPriceOper.AffterSaveDelegate(frmOper_AffterSave); } frmOper.EditNote(NoteID); frmOper.ShowDialog(); } }