示例#1
0
        public void Move(TModel model, int index)
        {
            if (!ModelViewMapping.ContainsKey(model))
            {
                return;
            }

            TView view = ModelViewMapping[model];

            _moveView(view, index);
        }
示例#2
0
        public void Insert(TModel model, int index)
        {
            if (ModelViewMapping.ContainsKey(model))
            {
                return;
            }

            TView view = CreateView(model);

            ModelViewMapping[model] = view;
            _moveView(view, index);
        }