public override LayerVM DeepClone()
        {
            var result = new LengthLayerVM();

            result.Length     = Length;
            result.RealLength = RealLength;
            return(result);
        }
Ejemplo n.º 2
0
        private void UpdateRealLength()
        {
            double realToWpfFactor = (LowerBound - UpperBound) / ColumnHeight;

            for (int i = 0; i < Layers.Count; i++)
            {
                LengthLayerVM llvm = Layers[i] as LengthLayerVM;
                if (llvm != null)
                {
                    llvm.RealLength = llvm.Length * realToWpfFactor;
                }
            }
        }