private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new VendorMaintenance();

            frm.ShowDialog();
            PopulateVendors();
        }
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // get vendor from the grid
            var ven = (Vendor)uxVendors.CurrentRow.DataBoundItem;

            // pass it to the constructor of the maintenance form
            var frm = new VendorMaintenance(ven);

            frm.ShowDialog();
            PopulateVendors();
        }