//============================================================================*
        // OnEditManufacturer()
        //============================================================================*

        protected void OnEditManufacturer(object sender, EventArgs args)
        {
            //----------------------------------------------------------------------------*
            // Get the selected manufacturer
            //----------------------------------------------------------------------------*

            ListViewItem Item = m_ManufacturersListView.SelectedItems[0];

            if (Item == null)
            {
                return;
            }

            cManufacturer Manufacturer = (cManufacturer)Item.Tag;

            if (Manufacturer == null)
            {
                return;
            }

            //----------------------------------------------------------------------------*
            // Start the dialog
            //----------------------------------------------------------------------------*

            cManufacturerForm ManufacturerForm = new cManufacturerForm(Manufacturer, ref m_DataFiles);

            if (ManufacturerForm.ShowDialog() == DialogResult.OK)
            {
                m_ManufacturersListView.UpdateManufacturer(Manufacturer, ManufacturerForm.Manufacturer, true);

                UpdateManufacturers();
            }

            EditManufacturerButton.Focus();
        }
        //============================================================================*
        // OnAddManufacturer()
        //============================================================================*

        protected void OnAddManufacturer(object sender, EventArgs args)
        {
            //----------------------------------------------------------------------------*
            // Start the dialog
            //----------------------------------------------------------------------------*

            cManufacturerForm ManufacturerForm = new cManufacturerForm(null, ref m_DataFiles);

            if (ManufacturerForm.ShowDialog() == DialogResult.OK)
            {
                m_ManufacturersListView.AddManufacturer(ManufacturerForm.Manufacturer, true);

                UpdateManufacturers();
            }

            AddManufacturerButton.Focus();
        }