private void SaveCollectionButton_Click(object sender, EventArgs e) { var collectionName = CategoryComboBox.Text; var libPath = libManager.LibraryPath; var imageCollection = libManager.GetImageCollectionByCategory(collectionName); fileManager.SaveNewCollection(imageCollection, collectionName, libPath); SaveCollectionButton.Enabled = false; }
public void AssignImages(string categoryName) { var buttons = buttonsCollection.GetAllButtons(); var categorizedImageCollection = libManager.GetImageCollectionByCategory(categoryName); if (categorizedImageCollection != null) { ValidateAndSet(categorizedImageCollection, categoryName, buttons); } }