public DynamoDBController(IDynamoDBExamples dynamoDBExamples, IDeleteTable deleteTable, IAddItem addItem, IGetItem getItem, IUpdateItem updateItem, IDeleteItem deleteItem) { _dynamoDBExamples = dynamoDBExamples; _deleteTable = deleteTable; _addItem = addItem; _getItem = getItem; _updateItem = updateItem; _deleteItem = deleteItem; }
private void button1_Click(object sender, EventArgs e) { DataGridViewRow row = this.dataGridView1.SelectedRows[0] as DataGridViewRow; IAddItem parent = this.Owner as IAddItem; parent.AddNewItem(row); this.Close(); }
public ImageCommentController( [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository, IVectorRepository<int, Comment> imageCommentRepository, IAddItem whatsNew, IDeleteItem removeNews, LatestBroadcastService webSocketService ) : base(userDatabaseRepository) { this.imageCommentRepository = imageCommentRepository; this.whatsNew = whatsNew; this.removeNews = removeNews; this.webSocketService = webSocketService; }
/// <summary> /// Instantiates a new <see cref="UserImageController"/> instance. /// </summary> /// <param name="userImageRepository">The image repository, which stores the images</param> public UserImageController( [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository, IScalarRepository<int, Image> userImageRepository, IVectorRepository<int, Comment> imageCommentsRepo, ImageHandleFactory imageHandleFactory, IAddItem whatsNew, IDeleteItem removeNews, LatestBroadcastService webSocketService, IGetUserSpaceInfo userSpaceHandles ) : base(userDatabaseRepository) { this.userImageRepository = userImageRepository; this.imageCommentsRepo = imageCommentsRepo; this.imageHandleFactory = imageHandleFactory; this.whatsNew = whatsNew; this.removeNews = removeNews; this.webSocketService = webSocketService; this.userSpaceHandles = userSpaceHandles; }
public ForumPostController( [WithKey(ServiceKeys.UserDatabase)] IScalarRepository<string, User> userDatabaseRepository, [WithKey(ServiceKeys.ThreadPostContentRepository)] IScalarRepository<int, ThreadPostContent> postRepository, [WithKey(ServiceKeys.ThreadPostTitleRepository)] IScalarRepository<int, ThreadPostTitle> titleRepository, [WithKey(ServiceKeys.ForumCommentsRepository)] IVectorRepository<int, Comment> forumCommentRepository, IAddItem whatsNew, IDeleteItem remove, IMarkPost markPost, LatestBroadcastService webSocketService, ILogger<ForumPostController> logger ) : base(userDatabaseRepository) { this.postRepository = postRepository; this.forumCommentRepository = forumCommentRepository; this.titleRepository = titleRepository; this.whatsNew = whatsNew; this.remove = remove; this.markPost = markPost; this.webSocketService = webSocketService; this.logger = logger; }
public AddStock(IAddItem additems) { _additems = additems; }