示例#1
0
 public Login(Boolean isUser)
 {
     InitializeComponent();
     this.isUser                  = isUser;
     _context                     = new MichalBialekDbContext();
     _readRepositoryUser          = new ReadRepositoryUser <User>(_context);
     _readRepositoryAdministrator = new ReadRepositoryAdministrator <Administrator>(_context);
 }
示例#2
0
 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;
 }
示例#3
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);
 }
示例#4
0
 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";
     }
 }
示例#5
0
 public CarAdd()
 {
     _context            = new MichalBialekDbContext();
     _writeRepositoryCar = new WriteRepositoryCar <Car>(_context);
     InitializeComponent();
 }
 public CarView()
 {
     _context           = new MichalBialekDbContext();
     _readRepositoryCar = new ReadRepositoryCar <Car>(_context);
     InitializeComponent();
 }