Example #1
0
        private void OnExcuteMethod(object p)
        {
            StringModel stringModel = new StringModel {
                Name = Input
            };

            userControlViewModel.ItemList.Add(stringModel);
            Input = "";
        }
Example #2
0
        private void OnExcuteMethod(object p)
        {
            //ItemList.Remove(p.ToString());
            StringModel stringModel = p as StringModel;

            if (stringModel != null)
            {
                ItemList.Remove(stringModel);
            }
        }