示例#1
0
文件: Good.cs 项目: marati/LanitShop
        public void Add(object parameter)
        {
            GoodEntity good = parameter as GoodEntity;

            if (good != null)
            {
                if (!Goods.Contains(good))
                {
                    Goods.Add(good);
                }
            }
        }
示例#2
0
        public object[] ConvertBack(object value, Type[] types, object o, CultureInfo ci)
        {
            GoodEntity good = (GoodEntity)value;

            return(new object[] { good.Name, good.Quantity });
        }