示例#1
0
        private static Visgroup ReadVisgroup(GenericStructure visgroup)
        {
            var v = new Visgroup {
                Name    = visgroup["name"],
                ID      = visgroup.PropertyInteger("visgroupid"),
                Colour  = visgroup.PropertyColour("color", Colour.GetRandomBrushColour()),
                Visible = true
            };

            return(v);
        }
示例#2
0
 private static Visgroup ReadVisgroup(GenericStructure visgroup)
 {
     var v = new Visgroup
                 {
                     Name = visgroup["name"],
                     ID = visgroup.PropertyInteger("visgroupid"),
                     Colour = visgroup.PropertyColour("color", Colour.GetRandomBrushColour()),
                     Visible = true
                 };
     return v;
 }