Exemple #1
0
        private void EditVehicleBtn_Click(object sender, EventArgs e)
        {
            childForm.Dispose();
            ContentPanel.Controls.Remove(childForm);

            EditVehicleScreen EditVehicleChild = new EditVehicleScreen();

            EditVehicleChild.SetParentForm(this);
            EditVehicleChild.VehicleManagement = VehicleManagement;
            EditVehicleChild.UserManagement    = UserManagement;
            childForm          = EditVehicleChild;
            childForm.TopLevel = false;
            ContentPanel.Controls.Add(childForm);
            childForm.Show();
            childForm.BringToFront();
        }
Exemple #2
0
        }//end LoadViewSingleVehicleScreen()

        public void LoadEditSingleVehicleScreen(Vehicle ViewVehicle)
        {
            childForm.Dispose();
            ContentPanel.Controls.Remove(childForm);

            EditVehicleScreen EditVehicleChild = new EditVehicleScreen();

            EditVehicleChild.ParentForm        = this;
            EditVehicleChild.VehicleManagement = VehicleManagement;
            EditVehicleChild.UserManagement    = UserManagement;
            EditVehicleChild.CurrentVehicle    = ViewVehicle;
            childForm          = EditVehicleChild;
            childForm.TopLevel = false;
            ContentPanel.Controls.Add(childForm);
            childForm.Show();
            childForm.BringToFront();
        }//end LoadEditSingleVehicleScreen()