public CarPanelForAdministrator() { _context = new MichalBialekDbContext(); _readRepositoryCar = new ReadRepositoryCar <Car>(_context); _writeRepositorycar = new WriteRepositoryCar <Car>(_context); InitializeComponent(); }
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); }
public CarAdd() { _context = new MichalBialekDbContext(); _writeRepositoryCar = new WriteRepositoryCar <Car>(_context); InitializeComponent(); }