private void tsbAdd_Click(object sender, EventArgs e) { frmPurchaseReturn frmPurchaseReturn = new frmPurchaseReturn(); frmPurchaseReturn.BringToFront(); frmPurchaseReturn.StartPosition = FormStartPosition.CenterScreen; frmPurchaseReturn.ShowDialog(); frmPurchaseReturn.RefreshParentForm += delegate { BindDataGridView(pgPurchaseReturn.PageIndex); }; }
private void tsbEdit_Click(object sender, EventArgs e) { if (_PRGuid != null) { frmPurchaseReturn frmPurchaseReturn = new frmPurchaseReturn(); frmPurchaseReturn.PRGuid = _PRGuid; frmPurchaseReturn.BringToFront(); frmPurchaseReturn.StartPosition = FormStartPosition.CenterScreen; frmPurchaseReturn.ShowDialog(); frmPurchaseReturn.RefreshParentForm += delegate { BindDataGridView(pgPurchaseReturn.PageIndex); }; } else { this.ShowMessage("请选择要编辑的采购单"); } }