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;
 }
Beispiel #2
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";
     }
 }