Example #1
0
 /// <summary>
 /// Copy all entries into the given destination.
 /// </summary>
 public void CopyTo(IEntitySet3 <TIntf> destination)
 {
     foreach (var x in this)
     {
         destination.Add(x);
     }
 }
Example #2
0
        /// <summary>
        /// Commit change
        /// </summary>
        private void cmdOk_Click(object sender, EventArgs e)
        {
            var toRemove = locs.Where(x => !lbSet.Items.Contains(x)).ToList();

            foreach (ILoc loc in lbSet.Items)
            {
                locs.Add(loc);
            }
            foreach (var loc in toRemove)
            {
                locs.Remove(loc);
            }
        }