Exemplo n.º 1
0
 public ServiceAll(AngajatDbRepository angajatDbRepository, CursaDbRepository cursaDbRepository, InscriereDbRepository inscriereDbRepository, ParticipantDbRepository participantDbRepository)
 {
     AngajatDbRepository     = angajatDbRepository;
     CursaDbRepository       = cursaDbRepository;
     InscriereDbRepository   = inscriereDbRepository;
     ParticipantDbRepository = participantDbRepository;
 }
Exemplo n.º 2
0
        private void loginButton_Click(object sender, EventArgs e)
        {
            string username = UserTextBox.Text;

            Console.WriteLine(username);
            string password = PassTextBox.Text; Console.WriteLine(password);

            AngajatDbRepository angajatDbRepository = new AngajatDbRepository();

            if (angajatDbRepository.findOne(username, password) != null)
            {
                MainForm mainForm = new MainForm();
                mainForm.Text = username;
                mainForm.Show();
            }
            else
            {
                MessageBox.Show("Username sau parola incorecta!");
            }
        }
Exemplo n.º 3
0
 public ServiceLogin(AngajatDbRepository angajatDBRepository)
 {
     AngajatDBRepository = angajatDBRepository;
 }