예제 #1
0
        protected override void Execute(NativeActivityContext context)
        {
            List <ItemOrder> list = new List <ItemOrder>();

            list = CurrentList.Get(context);
            foreach (var item in list)
            {
                if (item.ItemName.Equals(ItemName.Get(context)))
                {
                    list.Remove(item);
                }
            }
            Result.Set(context, list);
        }
예제 #2
0
        protected override void Execute(NativeActivityContext context)
        {
            List <ItemOrder> list = new List <ItemOrder>();

            list = CurrentList.Get(context);
            list.Add(new ItemOrder()
            {
                ItemId   = 1,
                ItemName = ItemName.Get(context),
                ItemQty  = ItemQty.Get(context),
                ItemUnit = ItemUnit.Get(context)
            });
            Result.Set(context, list);
        }