(Inventory Enhancement) Extend the Inventory application to include a TextBox in
which the user can enter the number of shipments received in a week . Assume every shipment has the same number of cartons (each of which has the same number of items).Then, modify the code so that the Inventory application uses that value in its calculation.
which the user can enter the number of shipments received in a week . Assume every shipment has the same number of cartons (each of which has the same number of items).Then, modify the code so that the Inventory application uses that value in its calculation.
Solution:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Inventory_Enhancement
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
lblTotalResult.Text = Convert.ToString(
Int32.Parse(txtCartons.Text) *
Int32.Parse(txtItems.Text) *
Int32.Parse(txtShipments.Text));
}
}
}
Post A Comment:
0 comments: