private void saveButton_Click(object sender, EventArgs e)
        {
            PartsInformationClass partsObj = new PartsInformationClass();

            partsObj.PartsName     = partsNameTextBox.Text;
            partsObj.PartsNumber   = partsNumberTextBox.Text;
            partsObj.PartsPrice    = partsPriceTextBox.Text;
            partsObj.PartsQuentity = partsQuentityTextBox.Text;

            PartsInformationGetway partObg = new PartsInformationGetway();

            partObg.storePartsInformation(partsObj);


            MessageBox.Show("Information Save");
        }
        private void showListviewButton_Click(object sender, EventArgs e)
        {
            partsListView.Items.Clear();
            List <PartsInformationClass> partsess = new List <PartsInformationClass>();
            PartsInformationGetway       parts    = new PartsInformationGetway();

            partsess = parts.GetpartInnformation();

            foreach (PartsInformationClass partsOb in partsess)
            {
                ListViewItem partlist = new ListViewItem(partsOb.PartsName);
                partlist.SubItems.Add(partsOb.PartsNumber);
                partlist.SubItems.Add(partsOb.PartsPrice);
                partlist.SubItems.Add(partsOb.PartsQuentity);
                partsListView.Items.Add(partlist);
            }
        }