Ejemplo n.º 1
0
        public override void InitNodeTemplates(INodeTemplateFactory factory)
        {
            factory.AddSettingsEntry("Longitude", null, "Geo", PropertyTemplateType.Numeric, true);
            factory.AddSettingsEntry("Latitude", null, "Geo", PropertyTemplateType.Numeric, true);


            var valueDouble = factory.GetSetting("Latitude").ValueDouble;

            if (valueDouble != null)
            {
                Latitude = valueDouble.Value;
                var d = factory.GetSetting("Longitude").ValueDouble;
                if (d != null)
                {
                    Longitude = d.Value;
                }
            }
        }