public ShipmentAdd(ShipmentParam shipmentAddResult) { InitializeComponent(); _context = DataService.context; //_shipment = shipment; _shipmentAddResult = shipmentAddResult; }
private void tbtnMoveItemEdit_Click(object sender, EventArgs e) { ShipmentParam shipmentAddResult = new ShipmentParam(); shipmentAddResult.IsShipment = false; shipmentAddResult.Result = _movement; ShipmentAdd frmShipmentAdd = new ShipmentAdd(shipmentAddResult); if (frmShipmentAdd.ShowDialog() == DialogResult.OK) { _context.SaveChanges(); PopulateMovementItem(); } }