Пример #1
0
        private void ViewVehicle(Vehicle vh)
        {
            this.Controls.Clear();
            UC_ViewVehicle vehicle = new UC_ViewVehicle(vh);

            this.Controls.Add(vehicle);
        }
Пример #2
0
        private void btnAddService_Click(object sender, EventArgs e)
        {
            this.Controls.Clear();
            UC_ViewVehicle vehicle = new UC_ViewVehicle(_vehicle);

            this.Controls.Add(vehicle);
        }
        private void btnTreat_Click(object sender, EventArgs e)
        {
            _appointment.IsTreated = true;
            UC_ViewVehicle vh = new UC_ViewVehicle(_appointment.Vehicle);

            this.Controls.Clear();
            this.Controls.Add(vh);
        }