public ColorEditControl(ShemaLayer layer, ColorHeight height)
        {
            __Layer = layer;
            __ColorHeight = height;

            H = __ColorHeight.Heigth;

            InitializeComponent();
            DataContext = this;
        }
Beispiel #2
0
        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);
        }