Exemplo n.º 1
0
        private void Dashboard_Load(object sender, EventArgs e)
        {
            UserLoginResponseDto response = AdminPanel.GetResponseDto();

            user = response.User;
            dataGridView.DataSource        = patrimoineRepository.GetAll();
            modifierPatrimoineBtn.Enabled  = true;
            supprimerPatrimoineBtn.Enabled = true;
        }
Exemplo n.º 2
0
        private void Affectation_Load(object sender, EventArgs e)
        {
            employeeComboBox.DataSource    = userRepository.getAll();
            employeeComboBox.ValueMember   = "Id";
            employeeComboBox.DisplayMember = "FirstName";

            patrimoineComboBox.DataSource    = patrimoineRepository.GetAll();
            patrimoineComboBox.ValueMember   = "Id";
            patrimoineComboBox.DisplayMember = "Nom";
        }
Exemplo n.º 3
0
 private void Profile_Load(object sender, EventArgs e)
 {
     demanderPatrimoineBtn.Enabled = false;
     patrimoineGridView.DataSource = patrimoineRepository.GetAll();
 }