private DrawingGroup GetGroupOrCreate(string groupname) {
            lock (_groupsSYNC) {
                var grp = _groups.Find(x => x.Name.Equals(groupname));

                if (grp == null) {
                    grp = new DrawingGroup(groupname);
                    _groups.Add(grp);
                }
                return grp;
            }
        }
 public Renderer() {
     _groups = new List<DrawingGroup>();
     _defaultGroup = new DrawingGroup("default");
     _groups.Add(_defaultGroup);
 }
Example #3
0
 public Renderer()
 {
     _groups       = new List <DrawingGroup>();
     _defaultGroup = new DrawingGroup("default");
     _groups.Add(_defaultGroup);
 }