コード例 #1
0
        private void dgvGruppi_UserAddedRow(object sender, DataGridViewRowEventArgs e)
        {
            try
            {
                if (brandSelezionato == null)
                {
                    lblMessaggio.Text = "Brand non selezionato";
                    return;
                }

                _disabilitaEdit   = true;
                lblMessaggio.Text = _articolo.CreaGruppo("** NUOVO", string.Empty, brandSelezionato.IdBrand, Color.White.Name, _utenteConnesso);
                CaricaGrigliaGruppi();
            }
            catch (Exception ex)
            {
                MostraEccezione("Errore aggiungendo un gruppo", ex);
            }
            finally
            {
                _disabilitaEdit = false;
            }
        }