Beispiel #1
0
 public CarDetails(int carId, MetroStyleManager manager)
 {
     InitializeComponent();
     this.StyleManager = manager;
     Load_Page();
     Car        = _appCar.GetCar(id: carId);
     Images     = _appImage.GetImages(Car.Id);
     imageCount = Images.Count;
 }
Beispiel #2
0
        private void metroLink3_Click(object sender, EventArgs e)
        {
            MetroLink link   = (MetroLink)sender;
            var       car    = _appCar.GetCar(id: link.TabIndex);
            var       amount = _appAmount.GetAmount(car.Id);
            Rent      form   = new Rent(car, amount, User, this.StyleManager, Client);

            this.Hide();
            form.ShowDialog();
            this.Close();
        }