private void AdjustInventory() { if (!dxValidationProvider1.Validate()) { return; } int qty = Int32.Parse(adjustmentQtyEdit.Value.ToString()); var sourceType = sourceTypeLookUp.EditValue as AdjustmentTransactionType; var success = false; if (InventoryType == "Consumable") { success = MaterialService.AdjustMaterialConsumableItem(m_part, m_sfl, qty, commentsText.Text, sourceType, m_messages); } else { success = MaterialService.AdjustMaterialWarehouseItem(m_part, m_domain, m_rackLocation, qty, commentsText.Text, sourceType, m_messages); } if (success) { Scout.Core.UserInteraction.Dialog.ShowMessage("Material Qty Adjusted.", UserMessageType.Information); Reset(); } }