public GestionComptes(IClientService clientService, IFacturationService facturationService)
        {
            //InitialiserEnvironnementAsync();
            this.clientService      = clientService;
            this.facturationService = facturationService;

            InitializeComponent();
            this.backgroundWorkerFacturation.RunWorkerAsync();


            cmbChercherClient.TextChanged += CmbChercherClient_TextChanged;
            cmbChercherCompte.TextChanged += CmbChercherCompte_TextChanged;
            cmbChercherCompte.SelectionChangeCommitted += CmbChercherCompte_SelectionChangeCommitted;
            cmbChercherClient.SelectionChangeCommitted += CmbChercherClient_SelectionChangeCommitted;
            grdComptes.SelectionChanged            += GrdComptes_SelectionChanged;
            cmbTerritoire.TextChanged              += CmbTerritoire_TextChanged;
            cmbTerritoire.SelectionChangeCommitted += CmbTerritoire_SelectionChangeCommitted;
            btnAjouterClient.Click += BtnAjouterClient_Click;


            btnAjouterCompte.Enabled    = false;
            btnConsulterClient.Enabled  = false;
            btnConsulterCompte.Enabled  = false;
            btnConsulterFacture.Enabled = false;
            btnModifierClient.Enabled   = false;
            btnModifierCompte.Enabled   = false;
            btnSupprimerCompte.Enabled  = false;
            btnVoirFilm.Enabled         = false;
        }
Beispiel #2
0
 public SupprimerCompte(int numéroCompte, IClientService clientService, IFacturationService facturationService)
 {
     this.numéroCompte       = numéroCompte;
     this.clientService      = clientService;
     this.facturationService = facturationService;
     InitializeComponent();
 }
Beispiel #3
0
 public AjouterCompte(int numéroClient, IClientService clientService, IFacturationService facturationService)
 {
     this.facturationService = facturationService;
     this.clientService      = clientService;
     this.numéroClient       = numéroClient;
     InitializeComponent();
     InitialiserForm();
 }
        public Authentification(IClientService clientService, IFacturationService facturationService)
        {
            this.facturationService = facturationService;
            this.clientService      = clientService;

            InitialiserEnvironnement();
            InitializeComponent();
        }
 public AjouterClient(IClientService clientService, IFacturationService facturationService)
 {
     this.facturationService = facturationService;
     this.clientService      = clientService;
     InitializeComponent();
 }