예제 #1
0
        private static void initialize()
        {
            _attributePool.AddRange(new DataColumn[]
            {
                new DataColumn("Name", typeof(String)),
                new DataColumn("Rank", typeof(Int32)),
                new DataColumn("YearsKnown", typeof(Single)),
                new DataColumn("LastVisited", typeof(DateTime)),
                new DataColumn("Criticality", typeof(Double)),
                new DataColumn("Health", typeof(Double)),
                new DataColumn("Risk", typeof(Double)),
                new DataColumn("Urgency", typeof(Double)),
                new DataColumn("Strength", typeof(Int32)),
                new DataColumn("Priority", typeof(Int32)),
                new DataColumn("Available", typeof(bool)),
                new DataColumn("Price", typeof(Decimal)),
                new DataColumn("Square Meterage", typeof(Double)),
                new DataColumn("Expiration Date", typeof(DateTime)),
                new DataColumn("Description", typeof(String))
            });

            foreach (String layer in _availableLayers)
            {
                LayerResources resources = new LayerResources();
                resources.LayerName      = layer;
                resources.Style          = generateStyle(layer);
                resources.AttributeCache = generateAttributes(layer);
            }
        }
        private static void initialize()
        {
            _attributePool.AddRange(new DataColumn[]
                                        {
                                            new DataColumn("Name", typeof (String)),
                                            new DataColumn("Rank", typeof (Int32)),
                                            new DataColumn("YearsKnown", typeof (Single)),
                                            new DataColumn("LastVisited", typeof (DateTime)),
                                            new DataColumn("Criticality", typeof(Double)),
                                            new DataColumn("Health", typeof(Double)),
                                            new DataColumn("Risk", typeof(Double)),
                                            new DataColumn("Urgency", typeof(Double)),
                                            new DataColumn("Strength", typeof(Int32)),
                                            new DataColumn("Priority", typeof(Int32)),
                                            new DataColumn("Available", typeof(bool)),
                                            new DataColumn("Price", typeof(Decimal)),
                                            new DataColumn("Square Meterage", typeof(Double)),
                                            new DataColumn("Expiration Date", typeof(DateTime)),
                                            new DataColumn("Description", typeof(String))
                                        });

            foreach (String layer in _availableLayers)
            {
                LayerResources resources = new LayerResources();
                resources.LayerName = layer;
                resources.Style = generateStyle(layer);
                resources.AttributeCache = generateAttributes(layer);
            }
        }