private void onSendToDB(object sender, EventArgs e) { try { FormSetItemName form = new FormSetItemName() { ItemName = ItemName }; if (DialogResult.OK == form.ShowDialog()) { PLMPackServiceClient client = WCFClientSingleton.Instance.Client; client.CreateNewPallet(new DCSBPallet() { Name = form.ItemName, Description = ItemDescription, UnitSystem = (int)UnitsManager.CurrentUnitSystem, PalletType = PalletTypeName, Dimensions = new DCSBDim3D() { M0 = PalletLength, M1 = PalletWidth, M2 = PalletHeight }, Weight = Weight, AdmissibleLoad = AdmissibleLoad, Color = PalletColor.ToArgb(), AutoInsert = false } ); } } catch (Exception ex) { _log.Error(ex.Message); } }