public ColorEditControl(ShemaLayer layer, ColorHeight height) { __Layer = layer; __ColorHeight = height; H = __ColorHeight.Heigth; InitializeComponent(); DataContext = this; }
public void AddNewHeigth() { ColorHeight toAdd = null; switch (Shade) { case ShadeType.None: toAdd = new ColorHeight { Color = UColor.Transparent }; break; default: toAdd = new ColorHeight(); break; } ColorHeights.Add(toAdd); }