예제 #1
0
        private static void MakeMatch(ReduxEntities ctx, UnmatchedItem item, pips_programmes p)
        {
            var rp = new redux_to_pips
            {
                duration_match = item.rp.duration_match,
                ischecked      = item.rp.ischecked,
                partial_match  = (item.r.programme_name == p.display_title) == false,
                pips_id        = p.id,
                redux_id       = item.rp.redux_id,
                start_match    = true,
                title_match    = (item.r.programme_name == p.display_title)
            };

            ctx.redux_to_pips.DeleteObject(item.rp);
            ctx.redux_to_pips.AddObject(rp);
            item.rp = rp;
            ctx.SaveChanges();
        }
예제 #2
0
 public ReduxViewModel(redux_items redux, pips_programmes pips, redux_to_pips join)
 {
     ReduxItem        = redux;
     Programme        = pips;
     ReduxToProgramme = join;
 }
예제 #3
0
 public UnmatchedItem(redux_items redux, redux_to_pips topips)
 {
     r  = redux;
     rp = topips;
 }