private void ShowMapWindow()
        {
            // change button states
            openMapWindow1.Enabled = false;
            openMapWindow2.Enabled = false;
            AddTruckButton.Enabled = true;

            // create the modal dialog we want to test for leaks.
            mapForm = new MapForm(this);

            // show the modal dialog
            mapForm.Show();

            // attach to closed-event
            mapForm.Closed += mapForm_Closed;
        }
        private void ShowMapWindow()
        {
            // change button states
            openMapWindow1.Enabled = false;
            openMapWindow2.Enabled = false;
            AddTruckButton.Enabled = true;

            // create the modal dialog we want to test for leaks.
            mapForm = new MapForm(this);

            // show the modal dialog
            mapForm.Show();

            // attach to closed-event
            mapForm.Closed += mapForm_Closed;
        }