private void compatibilityListBox_DoubleClick(object sender, EventArgs e)
        {
            currentTable = "Compatibility";
            tableMaintenanceEdit EditTableForm = new tableMaintenanceEdit();

            EditTableForm.SetAssociationFormInstance(this);
            EditTableForm.SetMainFormInstance(mainForm);
            EditTableForm.Text = "Edit or Delete Compatibility Item";
            EditTableForm.LoadTableEdit("Compatibility", "Edit", compatibilityListBox.GetItemText(compatibilityListBox.SelectedItem));
            EditTableForm.TopMost = true;
            EditTableForm.Show();
        }
        private void salesTypeListBox_DoubleClick(object sender, EventArgs e)
        {
            currentTable = "SalesType";
            tableMaintenanceEdit EditTableForm = new tableMaintenanceEdit();

            EditTableForm.SetAssociationFormInstance(this);
            EditTableForm.SetMainFormInstance(mainForm);
            EditTableForm.Text = "Edit or Delete Sales Type Item";
            EditTableForm.LoadTableEdit("SalesType", "Edit", salesTypeListBox.GetItemText(salesTypeListBox.SelectedItem));
            EditTableForm.TopMost = true;
            EditTableForm.Show();
        }
        private void dBMembershipListBox_DoubleClick(object sender, EventArgs e)
        {
            currentTable = "DBMembership";
            tableMaintenanceEdit EditTableForm = new tableMaintenanceEdit();

            EditTableForm.SetAssociationFormInstance(this);
            EditTableForm.SetMainFormInstance(mainForm);
            EditTableForm.Text = "Edit or Delete Database Membership Item";
            EditTableForm.LoadTableEdit("DBMembership", "Edit", dBMembershipListBox.GetItemText(dBMembershipListBox.SelectedItem));
            EditTableForm.TopMost = true;
            EditTableForm.Show();
        }
        private void addCompatibilityButton_Click(object sender, EventArgs e)
        {
            currentTable = "Compatibility";
            tableMaintenanceEdit EditTableForm = new tableMaintenanceEdit();

            EditTableForm.SetAssociationFormInstance(this);
            EditTableForm.SetMainFormInstance(mainForm);
            EditTableForm.Text = "Add Compatibility Item";
            EditTableForm.LoadTableEdit("Compatibility", "Add");
            EditTableForm.TopMost = true;
            EditTableForm.Show();
        }
        private void addDBMembershipButton_Click(object sender, EventArgs e)
        {
            currentTable = "DBMembership";
            tableMaintenanceEdit EditTableForm = new tableMaintenanceEdit();

            EditTableForm.SetAssociationFormInstance(this);
            EditTableForm.SetMainFormInstance(mainForm);
            EditTableForm.Text = "Add Database Membership Item";
            EditTableForm.LoadTableEdit("DBMembership", "Add");
            EditTableForm.TopMost = true;
            EditTableForm.Show();
        }
        // Rename or Delete supp doc
        private void allSuppDocsDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            String selectedDocID;
            String selectedDocName;

            DataGridViewRow row = this.allSuppDocsDataGridView.Rows[e.RowIndex];

            selectedDocID   = row.Cells[0].Value.ToString();
            selectedDocName = row.Cells[1].Value.ToString();
            currentTable    = "SuppumentalDocs";
            tableMaintenanceEdit EditTableForm = new tableMaintenanceEdit();

            EditTableForm.SetAssociationFormInstance(this);
            EditTableForm.SetMainFormInstance(mainForm);
            EditTableForm.Text = "Edit or Delete Supplemental Document";
            EditTableForm.LoadTableEdit("SuppumentalDocs", "Edit", selectedDocName);
            EditTableForm.TopMost = true;
            EditTableForm.Show();
        }