void GINDataEditor_Ok(object sender, EventArgs e) { try { if (GINDataEditor.DataSource != null) { GINInfo originalGIN = new GINInfo(); originalGIN.Copy(GINTruckInformation.GIN); GINTruckInformation.GIN.Copy(((LeavingTruck)GINDataEditor.DataSource).GIN); GINProcessWrapper.TruckLeftCompound(GINTruckInformation.TruckId); GINProcessWrapper.RemoveGINProcessInformation(); transferedData.Return(); } } catch (Exception ex) { errorDisplayer.ShowErrorMessage(ex.Message); } }