예제 #1
0
        public void AddType(List <sitetype> types)
        {
            // Reset Types
            Types.Clear();

            // Add each type
            foreach (var type in types)
            {
                _type t = new _type();
                t.id        = type.ID;
                t.eventId   = type.idIPMEvent;
                t.sizeId    = type.idSiteSize;
                t.serviceId = type.idService;
                t.styleId   = type.idStyleUrl;
                // check this later
                if (type.idStyleUrl != null)
                {
                    t.styleUrl = getStyle(type.idStyleUrl).styleUrl;
                }

                Types.Add(t);
            }
        }
예제 #2
0
        public void AddType(List<sitetype> types)
        {
            // Reset Types
            Types.Clear();

            // Add each type
            foreach (var type in types)
            {
                _type t = new _type();
                t.id = type.ID;
                t.eventId = type.idIPMEvent;
                t.sizeId = type.idSiteSize;
                t.serviceId = type.idService;
                t.styleId = type.idStyleUrl;
                // check this later
                if(type.idStyleUrl != null )
                    t.styleUrl = getStyle(type.idStyleUrl).styleUrl;

                Types.Add(t);
            }
        }