public Login(Boolean isUser) { InitializeComponent(); this.isUser = isUser; _context = new MichalBialekDbContext(); _readRepositoryUser = new ReadRepositoryUser <User>(_context); _readRepositoryAdministrator = new ReadRepositoryAdministrator <Administrator>(_context); }
public SignIn(Boolean isUser, Boolean returnToStartWindow) { InitializeComponent(); _context = new MichalBialekDbContext(); _writeRepositoryAdministrator = new WriteRepositoryAdministrator <Administrator>(_context); _writeRepositoryUser = new WriteRepositoryUser <User>(_context); this.isUser = isUser; this.returnToStartWindow = returnToStartWindow; }
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 HumanEditPanel(Boolean isUser) { InitializeComponent(); _context = new MichalBialekDbContext(); _writeRepositoryUser = new WriteRepositoryUser <User>(_context); _readRepositoryUser = new ReadRepositoryUser <User>(_context); _writeRepositoryAdministrator = new WriteRepositoryAdministrator <Administrator>(_context); _readRepositoryAdministration = new ReadRepositoryAdministrator <Administrator>(_context); this.isUser = isUser; if (isUser == false) { labelShowAllHuman.Text = "Pokaz Wszystkich adminiow"; buttonShowAllHuman.Text = "Pokaz Wszystkich adminiow"; labelDeleteHuman.Text = "Usun Administratora"; buttonDeleteHuman.Text = "usun Administratora"; buttonEditHuman.Text = "Edytuj Administratora"; } }
public CarAdd() { _context = new MichalBialekDbContext(); _writeRepositoryCar = new WriteRepositoryCar <Car>(_context); InitializeComponent(); }
public CarView() { _context = new MichalBialekDbContext(); _readRepositoryCar = new ReadRepositoryCar <Car>(_context); InitializeComponent(); }