Exemplo n.º 1
0
        private void eEntity_DettaglioRichiesto(object Key)
        {
#if DEBUG
            dynamic d = null;
            string  e = cGB.GetSelectedComboItem_Valore(eTipo);

            if (e.Equals("Ente"))
            {
                d = new Ente.Dettaglio();
            }
            else if (e.Equals("Lead"))
            {
                d = new Lead.Dettaglio();
            }
            else if (e.Equals("Persona"))
            {
                d = new Persona.Dettaglio();
            }
            else if (e.Equals("Minore"))
            {
                d = new Minore.Dettaglio();
            }

            if (d != null)
            {
                if (d.ShowDialog(Key) == DialogResult.OK)
                {
                    eEntity.Text = RiCaricaEntita().ExRicerca.Descrizione;
                }

                d.Dispose();
            }
#endif
        }
Exemplo n.º 2
0
        private void eCF_DettaglioRichiesto(object Key)
        {
#if DEBUG
            using (var d = new Persona.Dettaglio())
                if (d.ShowDialog(Key) == DialogResult.OK)
                {
                    eCF.Text = RiCaricaEntita().ExRicerca.RagioneSociale;
                }
#endif
        }