Ejemplo n.º 1
0
        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();
                }
            }
        }
Ejemplo n.º 2
0
        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();
                }
            }
        }