Beispiel #1
0
        public StoreCallbackTextRecipeStepBuilder(IRecipeStepStore store, IRecipeStepBuilder baseBuilder)
        {
            _store = store;

            Id   = new BuilderPropertyImpl <IRecipeStepBuilder, Guid>(this, baseBuilder.Id.Value);
            Text = new BuilderPropertyImpl <ITextRecipeStepBuilder, string>(this);
        }
Beispiel #2
0
        public StoreCallbackBigImageRecipeStepBuilder(IRecipeStepStore store, IRecipeStepBuilder builder)
        {
            _store = store;

            Id          = new BuilderPropertyImpl <IRecipeStepBuilder, Guid>(this, builder.Id.Value);
            ImageLoader = new BuilderPropertyImpl <IBigImageRecipeStepBuilder, string>(this);
            ImageSource = new BuilderPropertyImpl <IBigImageRecipeStepBuilder, string>(this);
        }
Beispiel #3
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;
        }
Beispiel #4
0
 public StoreCallbackRecipeStepBuilder(IRecipeStepStore store)
 {
     _store = store;
     Id     = new BuilderPropertyImpl <IRecipeStepBuilder, Guid>(this, Guid.NewGuid());
 }