Beispiel #1
0
        private void OpenInfoButton_Click(object sender, EventArgs e)
        {
            AutoCard autocard = new AutoCard();

            //autocard.setFlagCanAdd(flagCanAdd);
            autocard.Show();
        }
Beispiel #2
0
        private void OpenInfoButton_Click(object sender, EventArgs e)
        {
            Control btn = (Control)sender;

            AutoForStorage openCar = new AutoForStorage();

            openCar = AutoModelsListService.CarSearch(btn.Name.Remove(0, 4));

            if (openCar != null)
            {
                AutoCard autocard = new AutoCard(openCar.ThisAutoModel.Mark, openCar.ThisAutoModel.Model, openCar.ThisAutoModel.Country, openCar.ThisAutoModel.Category.Name,
                                                 openCar.ThisAutoModel.Fuel, openCar.ThisAutoModel.FuelPerHour.ToString(), openCar.ThisAutoModel.SumLease.ToString(), openCar.CarsAmount.ToString(), openCar.ThisAutoModel.AutoPhoto);
                autocard.Show();
            }
            else
            {
                AutoCard autocard = new AutoCard();
                autocard.Show();
            }
        }
Beispiel #3
0
        private void OpenButton_Click(object sender, EventArgs e)
        {
            AutoCard autocard = new AutoCard();

            autocard.Show();
        }