Ejemplo n.º 1
0
        public void FillTo(EntityCollectionBase <int, T> list)
        {
            int listCount = list.Count;

            for (int i = 0; i < this.Count; i++)
            {
                if (i >= listCount)
                {
                    break;
                }

                Revertable <T> revertable = this.GetValue(list[i].GetKey());
                if (revertable != null)
                {
                    list[i].SetNewRevertableText(revertable.Value.Text, revertable.Value.KeywordVersion);

                    if (revertable.OriginalText != null)
                    {
                        list[i].SetOriginalText(revertable.OriginalText);
                    }
                    //list[i]. = revertable.Value;
                }
            }
        }
Ejemplo n.º 2
0
        public void Add(T value, string reverter)
        {
            Revertable <T> item = new Revertable <T>(value, reverter);

            this.Add(item);
        }