void CreateRolls(Roll [] rolls) { if (rolls == null) rolls = from_db.Rolls.GetRolls (); RollStore from_store = from_db.Rolls; RollStore to_store = to_db.Rolls; foreach (Roll roll in rolls) { if (from_store.PhotosInRoll (roll) == 0) continue; roll_map [roll.Id] = (to_store.Create (roll.Time).Id); } }
public void FinishRoll () { current_roll = null; }
public void PrepareRoll () { if (current_roll != null) return; current_roll = db.Rolls.Create (); }
void DoMerge (PhotoQuery query, Roll [] rolls, bool copy) { tag_map = new Dictionary<uint, Tag> (); roll_map = new Dictionary<uint, uint> (); Log.Warning ("Merging tags"); MergeTags (from_db.Tags.RootCategory); Log.Warning ("Creating the rolls"); CreateRolls (rolls); Log.Warning ("Importing photos"); ImportPhotos (query, copy); }