Beispiel #1
0
        //BEGIN - GESTION DES BOUTONS/////////////////////////////////////::
        /// <summary>
        /// Affiche un client individuel vide pour ajout
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAjouter_Click(object sender, EventArgs e)
        {
            frmFicheClient = new frmClt();

            if (frmFicheClient.ShowDialog() == DialogResult.OK)
            {
                controlesVisuels();// réaffiche la liste des Clients
                afficheClients();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Doubvle Clic sur le Grid : ouvre le Client Sellectionnne
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void grdCltDsp_DoubleClick(object sender, EventArgs e)
        {
            if (grdCltDsp.CurrentRow != null)
            {
                idClient = (Int32)grdCltDsp.CurrentRow.Cells[0].Value;
            }
            foreach (Client c in Donnees.ListeFicheClient)
            {
                if (c.IdClient == idClient)
                {
                    client = c;
                }
            }


            frmClt frmClient = new frmClt(client, false);

            if (frmClient.ShowDialog() == DialogResult.OK)
            {
                this.controlesVisuels();
                this.afficheClients();
            }
        }