Esempio n. 1
0
        public void Add(object parameter)
        {
            GoodEntity good = parameter as GoodEntity;

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

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