public CarPanelForAdministrator()
 {
     _context            = new MichalBialekDbContext();
     _readRepositoryCar  = new ReadRepositoryCar <Car>(_context);
     _writeRepositorycar = new WriteRepositoryCar <Car>(_context);
     InitializeComponent();
 }
Exemple #2
0
 public RentPanel()
 {
     InitializeComponent();
     _context             = new MichalBialekDbContext();
     _writeRepositoryRent = new WriteRepositoryRent <Rent>(_context);
     _readRepositoryCar   = new ReadRepositoryCar <Car>(_context);
     _readRepositoryUser  = new ReadRepositoryUser <User>(_context);
     _writeRepositoryCar  = new WriteRepositoryCar <Car>(_context);
     _readRepositoryRent  = new ReadRepositoryRent <Rent>(_context);
 }
Exemple #3
0
 public CarAdd()
 {
     _context            = new MichalBialekDbContext();
     _writeRepositoryCar = new WriteRepositoryCar <Car>(_context);
     InitializeComponent();
 }