Пример #1
0
        internal SQLiteRecipeStore(SQLiteAsyncConnection connection, IImageStore imageStore, IIngredientStore ingredientStore,
                                   IPictogramStore pictogramStore, IRecipeStepStore stepStore) : base(connection, imageStore)
        {
            _ingredientStore = ingredientStore;
            _pictogramStore  = pictogramStore;
            _stepStore       = stepStore;

            // TODO: replace with default image
            _defaultImage = null;
        }
        public StoreCallbackIngredientBuilder(IIngredientStore ingredientStore)
        {
            _ingredientStore = ingredientStore;

            Id   = new BuilderPropertyImpl <IIngredientBuilder, Guid>(this, Guid.NewGuid());
            Name = new BuilderPropertyImpl <IIngredientBuilder, string>(this);

            ImageLoader = new BuilderPropertyImpl <IIngredientBuilder, string>(this);
            ImageSource = new BuilderPropertyImpl <IIngredientBuilder, string>(this);
        }