Ejemplo n.º 1
0
        private async Task CreateAddContactAsync(string name, string lastName, string email, string phone, int id)
        {
            var  procesador = new Procesador();
            bool result     = await procesador.CrearAgregarContactoAsync(name, lastName, email, phone, id, false);

            if (!result)
            {
                MessageBox.Show("CONTACTO CREADO CORRECTAMENTE", "INFORMACION DEL SISTEMA", MessageBoxButtons.OK, MessageBoxIcon.Information);
                _ = SetTableCarpetaAsync();
                _ = ObtenerListasEnCarpetaAsync(idCarpeta);
            }
            else
            {
                MessageBox.Show("CREACION DE CONTACTO FALLIDA, PUEDE QUE EL CONTACTO YA EXISTA", "INFORMACION DEL SISTEMA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            Limpiar();
        }