Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        public void AssignImages(string categoryName)
        {
            var buttons = buttonsCollection.GetAllButtons();
            var categorizedImageCollection = libManager.GetImageCollectionByCategory(categoryName);

            if (categorizedImageCollection != null)
            {
                ValidateAndSet(categorizedImageCollection, categoryName, buttons);
            }
        }