private void AddSeasonMethod(bool allowExit = false, bool load = false) { AddCollectionWindow acw = new AddCollectionWindow(this, allowExit, load); if (acw.ShowDialog() == DialogResult.OK) { if (acw.collectionName != "" && !string.IsNullOrEmpty(acw.collectionName) && acw.outputFolderPath != "" && !string.IsNullOrEmpty(acw.outputFolderPath)) { data.AddCollection(CollectionsHolder.Items.Count, acw.collectionName, acw.outputFolderPath); CollectionsHolder.Items.Add(acw.collectionName); CollectionsHolder.SelectedIndex = CollectionsHolder.Items.Count - 1; SaveData(); } } }
private void AddSeasonButton_Click(object sender, EventArgs e) { AddCollectionWindow acw = new AddCollectionWindow(this, true); if (acw.ShowDialog() == DialogResult.OK) { if (acw.collectionName != "" && !string.IsNullOrEmpty(acw.collectionName) && acw.outputFolderPath != "" && !string.IsNullOrEmpty(acw.outputFolderPath)) { data.AddCollection(CollectionsHolder.Items.Count, acw.collectionName, acw.outputFolderPath); CollectionsHolder.Items.Add(acw.collectionName); CollectionsHolder.SelectedIndex = CollectionsHolder.Items.Count - 1; SaveData(); } } }