Beispiel #1
0
        public void InitializeLB_ListeNom()
        {
            ClientDAO repo;

            repo = new ClientDAO("server=(local);database=Fil_Rouge;Integrated Security = True");
            listBox1.DisplayMember = "NomClient";
            listBox1.ValueMember   = "IDClient";

            CB_ContactClient.ValueMember = "IDContactClient";
            listBox1.DataSource          = repo.Liste();
        }
Beispiel #2
0
        public ClientDAO InitializeRepo()
        {
            ClientDAO repo;

            return(repo = new ClientDAO("server=(local);database=Fil_Rouge;Integrated Security=True"));
        }