//modify button pressed for the product suppleir table on the package tab in the main form
        private void btnModifyPackProdSup_Click(object sender, EventArgs e)
        {
            //gets the package products supplier from the list according to the row index form the table
            Packages_Products_Suppliers packProdSup = packProdSups[packages_Products_SuppliersDataGridView.CurrentCell.RowIndex];

            SelectedRowPackage();
            AddModifyProdSup addModifyProdSup = new AddModifyProdSup();

            addModifyProdSup.addPackageProdSup = false;
            addModifyProdSup.package           = package;     //make add modify package equal package main form
            addModifyProdSup.packProdSup       = packProdSup; //make add modify package product supplier equal package product supplier main form
            DialogResult result = addModifyProdSup.ShowDialog();

            this.DisplayPackages();
            this.DisplayPackageProdSup();
        }
        //add button pressed for package product supplier table on the pakcage tab
        private void btnAddPackProdSup_Click(object sender, EventArgs e)
        {
            SelectedRowPackage();
            AddModifyProdSup addModifyProdSup = new AddModifyProdSup();

            addModifyProdSup.addPackageProdSup = true;
            addModifyProdSup.package           = package;        // making add modify form package equal packge from main form
            DialogResult result = addModifyProdSup.ShowDialog(); //shows the add modify product supplier form

            if (result == DialogResult.OK)
            {
                this.DisplayPackages();
                this.DisplayProductSupplier();
                this.DisplayPackageProdSup();
            }
        }