public void RemoveDrawableGroup(string key) { DrawableGroup removeTarget = null; foreach (var drawableGroup in this.drawableGroups) { if (drawableGroup.GroupName.Equals(key)) { removeTarget = drawableGroup; break; } } if (removeTarget == null) { return; } this.drawableGroups.Remove(removeTarget); }
public int CompareTo(DrawableGroup other) { return(priorty - other.priorty); }
public void AddDrawableGroup(DrawableGroup group) { this.drawableGroups.Add(group); this.drawableGroups.Sort(new DrawableGroup.DrawableGroupComparer()); }