Exemplo n.º 1
0
        private void btnAjouterCentre_Click(object sender, EventArgs e)
        {
            frmCentres centre = new frmCentres(client, null);

            centre.MdiParent = frmMaintInfo.Main;;
            centre.Show();
        }
Exemplo n.º 2
0
        //==================================================================================================
        // Data Grid View

        /// <summary>
        /// Appuis sur le bouton Détails du client
        /// Affiche le formulaire Centre , avec l'instance du centre en parametre
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dgvCentre_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvCentre.CurrentCell != null && dgvCentre.CurrentCell.RowIndex >= 0)
            {
                if (dgvCentre.CurrentCell.ColumnIndex == 4)
                {
                    frmCentres centre = new frmCentres(client, (Centre)bsCentre.Current);
                    centre.MdiParent = frmMaintInfo.Main;;
                    centre.Show();
                }
            }
        }