Example #1
0
        private void btnDetailsClass_Click(object sender, EventArgs e)
        {
            var frmDetails = new frmDetClassification();

            frmDetails.modifierChamp("m");

            frmDetails.ShowDialog();
        }
Example #2
0
        private void btnDetailsClass_Click(object sender, EventArgs e)
        {
            var frmDetails = new frmDetClassification();

            frmDetails.modifierChamp("m");

            frmDetails.ShowDialog();
        }
        private void btnAjoutClass_Click(object sender, EventArgs e)
        {
            var frmDetails = new frmDetClassification();

            frmDetails.modifierChamp();
            frmDetails.btnCopier.Enabled = false;
            frmDetails.ShowDialog();
            chargerDonnees(frmDetails.cote);
        }
        private void btnDetailsClass_Click(object sender, EventArgs e)
        {
            if (GridClassification.SelectedRows.Count == 1)
            {
                var frmDetails = new frmDetClassification();

                frmDetails.modifierChamp(GridClassification.SelectedCells[0].Value.ToString(), GridClassification.SelectedCells[1].Value.ToString(), GridClassification.SelectedCells[2].Value.ToString());

                frmDetails.ShowDialog();
                chargerDonnees();
            }
            else
            {
                MessageBox.Show("Aucune ligne n'a été sélectionné", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        private void GridClassification_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                presentRow = e.RowIndex;
                GridClassification.Rows[e.RowIndex].Selected = true;
                if (GridClassification.SelectedRows.Count == 1)
                {
                    var frmDetails = new frmDetClassification();

                    frmDetails.modifierChamp(GridClassification.SelectedCells[0].Value.ToString(), GridClassification.SelectedCells[1].Value.ToString(), GridClassification.SelectedCells[2].Value.ToString());

                    frmDetails.ShowDialog();
                    chargerDonnees();
                }
                else
                {
                    MessageBox.Show("Plusieurs lignes ont été sélectionnées", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }