private void ucToolbar1_NewEventHandler(object sender, EventArgs e) { frmShip f = new frmShip(); f.ShowDialog(); RefreshGrid(); }
private void ucToolbar1_EditEventHandler(object sender, EventArgs e) { if (this.grdQuery.ActiveRow != null ) { frmShip frm = new frmShip(); frm.ShipingSysId = this.grdQuery.ActiveRow.Cells["shippingsysid"].Value.ToString(); frm.ShowDialog(this); RefreshGrid(); } }