示例#1
0
        private Soil GetClone()
        {
            var result = new Soil(Description)
            {
                Ph = this.Ph
            };

            foreach (var key in dict.Keys)
            {
                result.Add(key, dict[key]);
            }
            result.EndEdit();
            return(result);
        }
示例#2
0
        public Soil MixWith(Soil other)
        {
            // нужно знать объем чтобы установить пропорции
            throw new NotImplementedException();

            var result = new Soil("");

            foreach (var key in dict.Keys)
            {
                result.Add(key, this.dict[key]);
            }
            foreach (var key in other.dict.Keys)
            {
                result.Add(key, other.dict[key]);
            }

            result.EndEdit();
            return(result);
        }