private void BtnAddVendor_Click(object sender, RoutedEventArgs e)
        {
            frmVendorDetails window = new frmVendorDetails(_vendorManager);

            if (window.ShowDialog() == true)
            {
                populateVendorList();
                lblStatusMessage.Content = "New Vendor Record Saved!";
            }
        }
        private void showPopulatedVendorDetailWindow()
        {
            Vendor vendor = (Vendor)dgVendorList.SelectedItem;

            if (vendor != null)
            {
                frmVendorDetails window = new frmVendorDetails(vendor, _vendorManager);
                if (window.ShowDialog() == true)
                {
                    populateVendorList();
                    lblStatusMessage.Content = "Changes to Vendor: " + vendor.VendorName + ", Saved!";
                }
            }
        }